mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-24 21:24:43 +01:00
17 lines
314 B
Go
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
|
|
}
|