refactor: implement Domain and AuthTokenName

This commit is contained in:
Derrick Hammer 2024-03-17 09:02:48 -04:00
parent b4b211d003
commit 9a899317c1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 0 deletions

View File

@ -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,