added content to about and contact page and added main-handler to achive spa-functionality
This commit is contained in:
parent
d60d1df51e
commit
b82e138c4d
6 changed files with 102 additions and 4 deletions
1
main.go
1
main.go
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue