diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-12-21 23:37:23 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-12-21 23:37:23 +0100 |
| commit | 82ade3c31fb17b662feec59e9e654ceb66edbb7a (patch) | |
| tree | 26443c41c55d2cd2ae46fdd0d663aca84b779ffe /code/api/Pages/Index.cshtml.cs | |
| parent | e60703aadca7d423c0fbfb189d5ef439fc1df072 (diff) | |
| download | storage-82ade3c31fb17b662feec59e9e654ceb66edbb7a.tar.xz storage-82ade3c31fb17b662feec59e9e654ceb66edbb7a.zip | |
feat: Add initial schema and start login
Diffstat (limited to 'code/api/Pages/Index.cshtml.cs')
| -rw-r--r-- | code/api/Pages/Index.cshtml.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
