mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-30 20:28:41 +01:00
fixed some bugs related to middleware
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user