From 67329809a7e5a861f6a5bca18473a6ef30091008 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Fri, 7 Dec 2018 16:43:28 +0100
Subject: [PATCH] show image list by default

---
 page_index.go | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/page_index.go b/page_index.go
index 06e9ca8..a2052fd 100644
--- a/page_index.go
+++ b/page_index.go
@@ -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")
-- 
GitLab