Made Menu look a bit nicer, added function to add new Manga. Extracted Handler functions to handler.go, fixed bug where new Title would crash

This commit is contained in:
Pablu23
2024-02-23 13:14:56 +01:00
parent 9bc483afb3
commit cd26d937aa
5 changed files with 311 additions and 203 deletions

View File

@@ -39,6 +39,7 @@ func main() {
}()
http.HandleFunc("/", s.HandleMenu)
http.HandleFunc("/new/", s.HandleNewQuery)
http.HandleFunc("/new/title/{title}/{chapter}", s.HandleNew)
http.HandleFunc("/current/", s.HandleCurrent)
http.HandleFunc("/img/{url}/", s.HandleImage)