SAVEPOINT

This commit is contained in:
luke.rodham
2017-11-10 10:52:11 +00:00
parent a189881568
commit 59301c7622
12 changed files with 455 additions and 7 deletions
+7 -2
View File
@@ -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
}