Feat: show and hide form

This commit is contained in:
Grail Finder
2025-05-02 14:09:19 +03:00
parent cd1100d4b1
commit 12f158b5a5
4 changed files with 38 additions and 23 deletions

View File

@ -23,7 +23,9 @@ func ListenToRequests(port string) error {
mux.HandleFunc("GET /ping", handlers.HandlePing)
mux.HandleFunc("GET /", handlers.HandleHome)
mux.HandleFunc("POST /login", handlers.HandleFrontLogin)
//elements
mux.HandleFunc("GET /room/createform", handlers.HandleShowCreateForm)
mux.HandleFunc("GET /room/hideform", handlers.HandleHideCreateForm)
slog.Info("Listening", "addr", port)
return server.ListenAndServe()
}