fixed some bugs related to middleware

This commit is contained in:
luke.rodham
2018-03-12 11:29:18 +00:00
parent 1e787689aa
commit 971f157307
5 changed files with 23 additions and 6 deletions
+2
View File
@@ -4,6 +4,7 @@ import (
"net/http"
gcontext "github.com/gorilla/context"
"github.com/sirupsen/logrus"
)
type Route struct {
@@ -12,6 +13,7 @@ type Route struct {
Handler Handler
Env string
Middleware MiddlewareStack
Logger *logrus.Logger
}
func (r *Route) ServeHTTP(res http.ResponseWriter, req *http.Request) {