From e7393085b43169c494cea7afe7782e728510fb51 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 17 Mar 2024 09:13:20 -0400 Subject: [PATCH] refactor: implement new methods for RoutableAPI --- api/account/account.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/account/account.go b/api/account/account.go index baf7000..32ea3d6 100644 --- a/api/account/account.go +++ b/api/account/account.go @@ -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 +}