some finishing touches on the bitbucket implementation for 0.4

This commit is contained in:
Brad Rydzewski
2015-10-04 17:40:27 -07:00
parent 1c87bd9c3b
commit 528fbb0f2c
9 changed files with 421 additions and 142 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/drone/drone/controller"
"github.com/drone/drone/router/middleware/header"
"github.com/drone/drone/router/middleware/refresh"
"github.com/drone/drone/router/middleware/session"
"github.com/drone/drone/static"
"github.com/drone/drone/template"
@@ -21,6 +22,7 @@ func Load(middleware ...gin.HandlerFunc) http.Handler {
e.Use(header.SetHeaders())
e.Use(middleware...)
e.Use(session.SetUser())
e.Use(refresh.Refresh)
e.GET("/", controller.ShowIndex)
e.GET("/login", controller.ShowLogin)