Skip to content
Snippets Groups Projects
Commit df754aca authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Add debugging utilities

parent 940673b3
Branches
No related tags found
No related merge requests found
......@@ -37,17 +37,17 @@ func main() {
http.FileServer(http.Dir("assets")),
}
http.Handle("/upload/", headerWrapper(pageUpload(pageContext)))
http.Handle("/upload/", pageUpload(pageContext))
http.Handle("/i/", headerWrapper(http.StripPrefix("/i/", pageImageDetail(pageContext))))
http.Handle("/me/i/", headerWrapper(http.StripPrefix("/me/i/", pageImageDetail(pageContext))))
http.Handle("/a/", headerWrapper(http.StripPrefix("/a/", pageAlbumDetail(pageContext))))
http.Handle("/me/a/", headerWrapper(http.StripPrefix("/me/a/", pageAlbumDetail(pageContext))))
http.Handle("/a/", http.StripPrefix("/a/", pageAlbumDetail(pageContext)))
http.Handle("/me/a/", http.StripPrefix("/me/a/", pageAlbumDetail(pageContext)))
http.Handle("/me/images/", headerWrapper(pageImageList(pageContext)))
http.Handle("/assets/", headerWrapper(http.StripPrefix("/assets/", http.FileServer(http.Dir("assets")))))
http.Handle("/", headerWrapper(pageIndex(pageContext)))
http.Handle("/me/images/", pageImageList(pageContext))
http.Handle("/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("assets"))))
http.Handle("/", pageIndex(pageContext))
http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("OK"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment