From fb874d681b19963897bdc54b99d4355f4c45f66f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 11 Mar 2025 00:21:09 +0900 Subject: refactor(backend): remove unnecessary comments --- backend/main.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'backend/main.go') diff --git a/backend/main.go b/backend/main.go index 3df5d83..6e95ae1 100644 --- a/backend/main.go +++ b/backend/main.go @@ -75,8 +75,6 @@ func main() { adminHandler.RegisterHandlers(adminGroup) if config.isLocal { - // For local dev: This is never used in production because the reverse - // proxy directly handles /files. filesGroup := e.Group("/phperkaigi/2025/code-battle/files") filesGroup.Use(middleware.StaticWithConfig(middleware.StaticConfig{ Root: "/", @@ -84,8 +82,6 @@ func main() { IgnoreBase: true, })) - // For local dev: This is never used in production because the reverse - // proxy sends these paths to the app server. e.GET("/phperkaigi/2025/code-battle/*", func(c echo.Context) error { return c.Redirect(http.StatusPermanentRedirect, "http://localhost:5173"+c.Request().URL.Path) }) -- cgit v1.2.3-70-g09d2