From 82ade3c31fb17b662feec59e9e654ceb66edbb7a Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 21 Dec 2022 23:37:23 +0100 Subject: feat: Add initial schema and start login --- code/api/Pages/Index.cshtml.cs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 code/api/Pages/Index.cshtml.cs (limited to 'code/api/Pages/Index.cshtml.cs') diff --git a/code/api/Pages/Index.cshtml.cs b/code/api/Pages/Index.cshtml.cs new file mode 100644 index 0000000..8129a9b --- /dev/null +++ b/code/api/Pages/Index.cshtml.cs @@ -0,0 +1,8 @@ +namespace I2R.Storage.Api.Pages; + +public class Index : PageModel +{ + public ActionResult OnGet() { + return User.Identity.IsAuthenticated ? Redirect("/home") : Redirect("/login"); + } +} \ No newline at end of file -- cgit v1.3