mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-24 21:24:43 +01:00
quick implementation of middleware
This commit is contained in:
@@ -5,9 +5,6 @@ import "net/http"
|
||||
type Handler func(Context) error
|
||||
|
||||
type Router interface {
|
||||
Prefix(path string)
|
||||
SetEnv(env string)
|
||||
|
||||
GET(path string, h Handler)
|
||||
POST(path string, h Handler)
|
||||
Static(path string, root http.FileSystem)
|
||||
@@ -15,4 +12,5 @@ type Router interface {
|
||||
|
||||
GetRoutes() []*Route
|
||||
GetStaticRoutes() []*StaticRoute
|
||||
GetOptions() *RouterOptions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user