diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-04 17:24:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-04 17:24:36 +0900 |
| commit | d87507918f33b289ac4fc4dece8a54fa3aa34923 (patch) | |
| tree | ac21e8263526daff40a0d5138c23a74a5b38ca0b /backend/main.go | |
| parent | 2034d5efe124ffa8a9bb56821a9dfcfea27425ff (diff) | |
| download | iosdc-japan-2025-albatross-d87507918f33b289ac4fc4dece8a54fa3aa34923.tar.gz iosdc-japan-2025-albatross-d87507918f33b289ac4fc4dece8a54fa3aa34923.tar.zst iosdc-japan-2025-albatross-d87507918f33b289ac4fc4dece8a54fa3aa34923.zip | |
feat(backend): add /logout to /admin/dashboard
Diffstat (limited to 'backend/main.go')
| -rw-r--r-- | backend/main.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/main.go b/backend/main.go index 7330109..2d38ee5 100644 --- a/backend/main.go +++ b/backend/main.go @@ -83,6 +83,13 @@ func main() { adminGroup := e.Group("/admin") adminHandler.RegisterHandlers(adminGroup) + // For local dev: + // This is never used in production because the reverse proxy sends /logout + // to the app server. + e.POST("/logout", func(c echo.Context) error { + return c.Redirect(http.StatusPermanentRedirect, "http://localhost:5173/logout") + }) + gameHubs.Run() if err := e.Start(":80"); err != http.ErrServerClosed { |
