Files
tuu/router.go
luke.rodham ef857c40a4 SAVEPOINT
2017-11-13 15:12:49 +00:00

17 lines
306 B
Go

package tuu
import "net/http"
type Handler func(Context) error
type Router interface {
Prefix(path string)
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
}