Feat: create room

This commit is contained in:
Grail Finder
2025-05-09 11:24:33 +03:00
parent e20118acea
commit 2b4bf2ec29
6 changed files with 39 additions and 18 deletions

View File

@ -25,6 +25,7 @@ func ListenToRequests(port string) error {
mux.HandleFunc("GET /room", handlers.HandleRoomEnter)
mux.HandleFunc("POST /join-team", handlers.HandleJoinTeam)
mux.HandleFunc("GET /end-turn", handlers.HandleEndTurn)
mux.HandleFunc("POST /room-create", handlers.HandleCreateRoom)
//elements
mux.HandleFunc("GET /room/createform", handlers.HandleShowCreateForm)
mux.HandleFunc("GET /room/hideform", handlers.HandleHideCreateForm)