refactor: add Domain method to RoutableAPI
This commit is contained in:
parent
3dfdd2d2f4
commit
33e644f5c7
|
@ -12,6 +12,7 @@ import (
|
||||||
|
|
||||||
type RoutableAPI interface {
|
type RoutableAPI interface {
|
||||||
Name() string
|
Name() string
|
||||||
|
Domain() string
|
||||||
Can(w http.ResponseWriter, r *http.Request) bool
|
Can(w http.ResponseWriter, r *http.Request) bool
|
||||||
Handle(w http.ResponseWriter, r *http.Request)
|
Handle(w http.ResponseWriter, r *http.Request)
|
||||||
Routes() (*httprouter.Router, error)
|
Routes() (*httprouter.Router, error)
|
||||||
|
|
Loading…
Reference in New Issue