Files
tuu/router.go
luke.rodham 59301c7622 SAVEPOINT
2017-11-10 10:52:11 +00:00

15 lines
251 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)
GetRoutes() []*Route
GetStaticRoutes() []*StaticRoute
}