frontend: fix bugs according to monsterTable

This commit is contained in:
Patryk Hegenberg 2023-12-06 11:42:44 +01:00
parent b82e138c4d
commit 309ade3e72
4 changed files with 13 additions and 8 deletions

View file

@ -28,7 +28,7 @@ func main() {
http.HandleFunc("/submit", handlers.SubmitHandler(content, &chars, &Monsters, filename))
http.Handle("/images/", http.StripPrefix("/images/", http.FileServer(http.FS(content))))
http.HandleFunc("/addMonster", handlers.AddMonster(&Monsters))
http.HandleFunc("/main", handlers.MainHandler(content))
http.HandleFunc("/main", handlers.MainHandler(content, &Monsters))
http.HandleFunc("/about", handlers.AboutHandler(content))
http.HandleFunc("/contact", handlers.ContactHandler(content))
http.HandleFunc("/monsterTable", handlers.MonsterTableHandler(content, &Monsters))