aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/main.go')
-rw-r--r--backend/main.go7
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 {