move router to httpx
This commit is contained in:
9
rest/httpx/router.go
Normal file
9
rest/httpx/router.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user