mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 22:58:07 +00:00
Modify: auth instance as first param in SignURI/Request
This commit is contained in:
1 parent
b5ee3ee609
commit
de4793aacb
7 files changed
+31
-27
No files matched your search
@@ -66,6 +66,7 @@ func (service *ItemService) Archive(ctx context.Context, c *gin.Context) seriali
|
||||
ttl = 30
|
||||
}
|
||||
signedURI, err := auth.SignURI(
|
||||
auth.General,
|
||||
fmt.Sprintf("/api/v3/file/archive/%s/archive.zip", zipID),
|
||||
time.Now().Unix()+int64(ttl),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user