summaryrefslogtreecommitdiff
path: root/cmd/api
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-08 12:13:50 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-08 12:13:50 +0200
commitc5b10e28b358308d8349b940af09f64368172f2e (patch)
tree47a79c82c04ea7604c03ff128c3b096876f5c9eb /cmd/api
parentf75ec8f8f5b3d0d75f752b26df1088e9d42d2634 (diff)
Remove relay package
Diffstat (limited to 'cmd/api')
-rw-r--r--cmd/api/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/api/main.go b/cmd/api/main.go
index b1f912f..96f7a2f 100644
--- a/cmd/api/main.go
+++ b/cmd/api/main.go
@@ -19,7 +19,7 @@ func main() {
r.HandleFunc("/auth/register", handlers.RegisterUser).Methods(http.MethodPost)
r.HandleFunc("/auth/login", handlers.LoginUser).Methods(http.MethodPost)
r.Handle("/play", middleware.AuthMiddleware(http.HandlerFunc(handlers.NewPlay))).Methods(http.MethodPost)
- r.Handle("/enter-play", middleware.AuthMiddleware(http.HandlerFunc(handlers.EnterPlay))).Methods(http.MethodPost)
+ r.Handle("/enter-game", middleware.AuthMiddleware(http.HandlerFunc(handlers.EnterGame))).Methods(http.MethodPost)
slog.Info("Serving on :8080")
handler := cors.AllowAll().Handler(r)