From d57a14d9a3737f2ddaacd781e8b91c36940d7128 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 3 Feb 2024 19:34:55 -0500 Subject: [PATCH] fix: need to add options routes --- api/s5/s5.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index 7cc477a..a80ba0e 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -116,10 +116,12 @@ func getRoutes(s *S5API) map[string]jape.Handler { "POST /s5/upload/directory": middleware.ApplyMiddlewares(s.httpHandler.DirectoryUpload, middleware.AuthMiddleware(s.identity, s.accounts)), // Tus API - "POST /s5/upload/tus": tusHandler, - "HEAD /s5/upload/tus/:id": tusHandler, - "POST /s5/upload/tus/:id": tusHandler, - "PATCH /s5/upload/tus/:id": tusHandler, + "POST /s5/upload/tus": tusHandler, + "OPTIONS /s5/upload/tus": tusHandler, + "HEAD /s5/upload/tus/:id": tusHandler, + "POST /s5/upload/tus/:id": tusHandler, + "PATCH /s5/upload/tus/:id": tusHandler, + "OPTIONS /s5/upload/tus/:id": tusHandler, // Download API "GET /s5/blob/:cid": middleware.ApplyMiddlewares(s.httpHandler.DownloadBlob, middleware.AuthMiddleware(s.identity, s.accounts)),