added content to about and contact page and added main-handler to achive spa-functionality

This commit is contained in:
Patryk Hegenberg 2023-12-06 09:12:49 +01:00
parent d60d1df51e
commit b82e138c4d
6 changed files with 102 additions and 4 deletions

View file

@ -28,6 +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("/about", handlers.AboutHandler(content))
http.HandleFunc("/contact", handlers.ContactHandler(content))
http.HandleFunc("/monsterTable", handlers.MonsterTableHandler(content, &Monsters))