refactor: implement new methods for RoutableAPI

This commit is contained in:
Derrick Hammer 2024-03-17 09:13:20 -04:00
parent 4bd2b028b7
commit e7393085b4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 0 deletions

View File

@ -388,3 +388,11 @@ func (a AccountAPI) Can(w http.ResponseWriter, r *http.Request) bool {
func (a AccountAPI) Handle(w http.ResponseWriter, r *http.Request) {
}
func (a *AccountAPI) Domain() string {
return router.BuildSubdomain(a, a.config)
}
func (a AccountAPI) AuthTokenName() string {
return account.AUTH_COOKIE_NAME
}