Show user friendly error messages on homepage.

This commit is contained in:
Vojtěch Káně
2021-07-03 16:22:17 +02:00
parent 08b8aad09d
commit b0e8a43331
4 changed files with 94 additions and 31 deletions

View File

@@ -101,7 +101,7 @@ func main() {
}()
mux := httprouter.New()
mux.GET("/", app.home)
mux.GET("/", app.homeSuccess)
mux.POST("/play/:code", app.play)
mux.POST("/session", app.createSession)
mux.GET("/game/:playerUid", app.game)