From df754aca0a3a88ab581bf2561721dfd1fe2b8c6d Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Sun, 18 Mar 2018 05:49:49 +0100 Subject: [PATCH] Add debugging utilities --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 927e2da..441661b 100644 --- a/main.go +++ b/main.go @@ -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")) -- GitLab