Commit 67329809 authored by Janne Koschinski's avatar Janne Koschinski

show image list by default

parent 71d47ab8
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment