Feat: add exit room

This commit is contained in:
Grail Finder
2025-05-11 13:59:25 +03:00
parent cf5643227b
commit f2aee1469b
7 changed files with 55 additions and 4 deletions

View File

@ -30,6 +30,7 @@ func ListenToRequests(port string) error {
mux.HandleFunc("GET /start-game", handlers.HandleStartGame)
mux.HandleFunc("GET /room-join", handlers.HandleJoinRoom)
mux.HandleFunc("POST /give-clue", handlers.HandleGiveClue)
mux.HandleFunc("GET /room/exit", handlers.HandleExit)
//elements
mux.HandleFunc("GET /actionhistory", handlers.HandleActionHistory)
mux.HandleFunc("GET /room/createform", handlers.HandleShowCreateForm)