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

show image list by default

parent 71d47ab8
Branches
No related tags found
No related merge requests found
......@@ -21,13 +21,7 @@ func removeFileExtensions(path string) string {
func pageIndex(ctx PageContext) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/" {
user := parseUser(r)
if err := formatTemplate(w, "index.html", IndexData{
user,
}); err != nil {
panic(err)
}
http.Redirect(w, r, "/me/images", http.StatusFound)
} else if r.URL.Path == "/favicon.ico" {
w.Header().Set("Vary", "Accept-Encoding")
w.Header().Set("Cache-Control", "public, max-age=31536000")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment