mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-30 12:38:48 +01:00
SAVEPOINT
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
package tuu
|
||||
|
||||
import "net/http"
|
||||
|
||||
type Handler func(Context) error
|
||||
|
||||
type Router interface {
|
||||
GET(path string, ctx Context)
|
||||
POST(path string, ctx Context)
|
||||
GET(path string, h Handler)
|
||||
POST(path string, h Handler)
|
||||
Static(path string, root http.FileSystem)
|
||||
|
||||
GetRoutes() []*Route
|
||||
GetStaticRoutes() []*StaticRoute
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user