fix: need to add options routes
This commit is contained in:
parent
fd721077e5
commit
d57a14d9a3
|
@ -117,9 +117,11 @@ func getRoutes(s *S5API) map[string]jape.Handler {
|
||||||
|
|
||||||
// Tus API
|
// Tus API
|
||||||
"POST /s5/upload/tus": tusHandler,
|
"POST /s5/upload/tus": tusHandler,
|
||||||
|
"OPTIONS /s5/upload/tus": tusHandler,
|
||||||
"HEAD /s5/upload/tus/:id": tusHandler,
|
"HEAD /s5/upload/tus/:id": tusHandler,
|
||||||
"POST /s5/upload/tus/:id": tusHandler,
|
"POST /s5/upload/tus/:id": tusHandler,
|
||||||
"PATCH /s5/upload/tus/:id": tusHandler,
|
"PATCH /s5/upload/tus/:id": tusHandler,
|
||||||
|
"OPTIONS /s5/upload/tus/:id": tusHandler,
|
||||||
|
|
||||||
// Download API
|
// Download API
|
||||||
"GET /s5/blob/:cid": middleware.ApplyMiddlewares(s.httpHandler.DownloadBlob, middleware.AuthMiddleware(s.identity, s.accounts)),
|
"GET /s5/blob/:cid": middleware.ApplyMiddlewares(s.httpHandler.DownloadBlob, middleware.AuthMiddleware(s.identity, s.accounts)),
|
||||||
|
|
Loading…
Reference in New Issue