mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-17 04:30:57 +01:00
added key auth support for rw operations (upload, non-expiring download)
This commit is contained in:
@@ -64,7 +64,11 @@ func Setup(c *cfg.Config, path string) *Request {
|
||||
})
|
||||
}
|
||||
|
||||
return &Request{Url: c.Endpoint + cfg.ApiVersion + "/file/", R: R}
|
||||
if len(c.Apikey) > 0 {
|
||||
client.SetCommonBearerAuthToken(c.Apikey)
|
||||
}
|
||||
|
||||
return &Request{Url: c.Endpoint + "/file/", R: R}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user