From 9a899317c108e31edba59b86bb4a9806f20030a6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 17 Mar 2024 09:02:48 -0400 Subject: [PATCH] refactor: implement Domain and AuthTokenName --- api/s5/s5.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/s5/s5.go b/api/s5/s5.go index 54fb548..320eb5c 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -2123,6 +2123,14 @@ func (s *S5API) pinImportCronJob(cid string, url string, proofUrl string, userId return nil } +func (s *S5API) Domain() string { + return router.BuildSubdomain(s, s.config) +} + +func (s *S5API) AuthTokenName() string { + return "s5-auth-token" +} + func isCidManifest(cid *encoding.CID) bool { mTypes := []types.CIDType{ types.CIDTypeMetadataMedia,