aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-04-02 01:29:46 +0900
committernsfisis <nsfisis@gmail.com>2025-04-02 01:29:46 +0900
commitac38af84490b1bd5546ff7ff8135ab4126bee090 (patch)
tree88080f95cfeb499716a80872fe998955c4644bef
parent9f8a609ece9093d3aaa62937c8035903bbd8a045 (diff)
downloadphperkaigi-2025-albatross-ac38af84490b1bd5546ff7ff8135ab4126bee090.tar.gz
phperkaigi-2025-albatross-ac38af84490b1bd5546ff7ff8135ab4126bee090.tar.zst
phperkaigi-2025-albatross-ac38af84490b1bd5546ff7ff8135ab4126bee090.zip
fix(backend): fix paths
-rw-r--r--backend/admin/handler.go2
-rw-r--r--backend/admin/templates/dashboard.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/admin/handler.go b/backend/admin/handler.go
index eaea208..81ea2b7 100644
--- a/backend/admin/handler.go
+++ b/backend/admin/handler.go
@@ -464,5 +464,5 @@ func (h *Handler) postFix(c echo.Context) error {
return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
}
}
- return c.Redirect(http.StatusSeeOther, basePath+"/admin")
+ return c.Redirect(http.StatusSeeOther, basePath+"/admin/dashboard")
}
diff --git a/backend/admin/templates/dashboard.html b/backend/admin/templates/dashboard.html
index 17a0d6a..92133b6 100644
--- a/backend/admin/templates/dashboard.html
+++ b/backend/admin/templates/dashboard.html
@@ -10,7 +10,7 @@
<p>
<a href="{{ .BasePath }}/admin/online-qualifying-ranking?game_1=7&game_2=8">Online Qualifying Ranking</a>
</p>
-<form method="post" action="{{ .BasePath }}/fix">
+<form method="post" action="{{ .BasePath }}/admin/fix">
<button type="submit">fix</button>
</form>
<form method="post" action="{{ .BasePath }}/logout">