move router to httpx

This commit is contained in:
kevin
2020-07-31 12:13:30 +08:00
parent f372ded63c
commit b73684d9a6
7 changed files with 896 additions and 902 deletions

9
rest/httpx/router.go Normal file
View File

@@ -0,0 +1,9 @@
package httpx
import "net/http"
type Router interface {
http.Handler
Handle(method string, path string, handler http.Handler) error
SetNotFoundHandler(handler http.Handler)
}