Files
tuu/router.go
2018-03-12 10:08:30 +00:00

17 lines
314 B
Go

package tuu
import "net/http"
type Handler func(Context) error
type Router interface {
GET(path string, h Handler)
POST(path string, h Handler)
Static(path string, root http.FileSystem)
NotFound(path string, h Handler)
GetRoutes() []*Route
GetStaticRoutes() []*StaticRoute
GetOptions() *RouterOptions
}