#1533 first cut to show only active repos initially

This commit is contained in:
Jeff Storey
2016-03-23 22:13:03 -04:00
parent 1f336b456c
commit b7d537fc5d
5 changed files with 100 additions and 17 deletions

View File

@@ -30,6 +30,7 @@ func Load(middleware ...gin.HandlerFunc) http.Handler {
e.Use(token.Refresh)
e.GET("/", web.ShowIndex)
e.GET("/repos", web.ShowAllRepos)
e.GET("/login", web.ShowLogin)
e.GET("/login/form", web.ShowLoginForm)
e.GET("/logout", web.GetLogout)
@@ -163,7 +164,7 @@ func normalize(h http.Handler) http.Handler {
parts := strings.Split(r.URL.Path, "/")[1:]
switch parts[0] {
case "settings", "api", "login", "logout", "", "authorize", "hook", "static", "gitlab":
case "settings", "repos", "api", "login", "logout", "", "authorize", "hook", "static", "gitlab":
// no-op
default: