aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-10 00:55:25 +0900
committernsfisis <nsfisis@gmail.com>2024-08-10 00:55:25 +0900
commit7bb74889f0c803c478f9dece40e65004bbd22456 (patch)
tree0572dba187d5b10e8f1e82c00075c07507f9d689
parenta158ceb8cc771b3e0e47597db01c8bd35a99c04d (diff)
downloadphperkaigi-2025-albatross-7bb74889f0c803c478f9dece40e65004bbd22456.tar.gz
phperkaigi-2025-albatross-7bb74889f0c803c478f9dece40e65004bbd22456.tar.zst
phperkaigi-2025-albatross-7bb74889f0c803c478f9dece40e65004bbd22456.zip
fix(backend): fix base path of login/logout pages on local env
-rw-r--r--backend/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/main.go b/backend/main.go
index c01394b..3296957 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -89,10 +89,10 @@ func main() {
// For local dev: This is never used in production because the reverse
// proxy sends /login and /logout to the app server.
- e.GET("/login", func(c echo.Context) error {
+ e.GET("/iosdc-japan/2024/code-battle/login", func(c echo.Context) error {
return c.Redirect(http.StatusPermanentRedirect, "http://localhost:5173/iosdc-japan/2024/code-battle/login")
})
- e.POST("/logout", func(c echo.Context) error {
+ e.POST("/iosdc-japan/2024/code-battle/logout", func(c echo.Context) error {
return c.Redirect(http.StatusPermanentRedirect, "http://localhost:5173/iosdc-japan/2024/code-battle/logout")
})