aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Pages/Index.cshtml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/Pages/Index.cshtml.cs')
-rw-r--r--code/api/Pages/Index.cshtml.cs8
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