refactor: add AuthTokenName to RoutableAPI
This commit is contained in:
parent
5223a44790
commit
325a368dea
|
@ -13,6 +13,7 @@ import (
|
||||||
type RoutableAPI interface {
|
type RoutableAPI interface {
|
||||||
Name() string
|
Name() string
|
||||||
Domain() string
|
Domain() string
|
||||||
|
AuthTokenName() 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