💥 Add /api prefix for json endpoints with redirect

This commit is contained in:
2025-07-10 14:18:02 +08:00
parent 1f2cdb146d
commit fc6edd7378
43 changed files with 217 additions and 41 deletions

View File

@ -1,9 +1,9 @@
@page "/web/auth/challenge/{id:guid}"
@page "//auth/challenge/{id:guid}"
@model DysonNetwork.Sphere.Pages.Auth.ChallengeModel
@{
// This page is kept for backward compatibility
// It will automatically redirect to the new SelectFactor page
Response.Redirect($"/web/auth/challenge/{Model.Id}/select-factor");
Response.Redirect($"//auth/challenge/{Model.Id}/select-factor");
}
<div class="hero min-h-full bg-base-200">

View File

@ -1,4 +1,4 @@
@page "/web/auth/login"
@page "//auth/login"
@model DysonNetwork.Sphere.Pages.Auth.LoginModel
@{
ViewData["Title"] = "Login | Solar Network";

View File

@ -1,4 +1,4 @@
@page "/web/auth/challenge/{id:guid}/select-factor"
@page "//auth/challenge/{id:guid}/select-factor"
@using DysonNetwork.Sphere.Account
@model DysonNetwork.Sphere.Pages.Auth.SelectFactorModel
@{

View File

@ -1,4 +1,4 @@
@page "/web/auth/challenge/{id:guid}/verify/{factorId:guid}"
@page "//auth/challenge/{id:guid}/verify/{factorId:guid}"
@using DysonNetwork.Sphere.Account
@model DysonNetwork.Sphere.Pages.Auth.VerifyFactorModel
@{