diff --git a/api/s5/s5.go b/api/s5/s5.go index 809073e..8e0ecfc 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -198,8 +198,10 @@ func (s *S5API) Routes() (*httprouter.Router, error) { "GET /s5/account/pins": middleware.ApplyMiddlewares(s.accountPins, authMw), // Upload API - "POST /s5/upload": middleware.ApplyMiddlewares(s.smallFileUpload, uploadCors.Handler, authMw), - "POST /s5/upload/directory": middleware.ApplyMiddlewares(s.directoryUpload, uploadCors.Handler, authMw), + "POST /s5/upload": middleware.ApplyMiddlewares(s.smallFileUpload, uploadCors.Handler, authMw), + "POST /s5/upload/directory": middleware.ApplyMiddlewares(s.directoryUpload, uploadCors.Handler, authMw), + "OPTIONS /s5/upload": middleware.ApplyMiddlewares(s.smallFileUpload, uploadCors.Handler, authMw), + "OPTIONS /s5/upload/directory": middleware.ApplyMiddlewares(s.directoryUpload, uploadCors.Handler, authMw), // Tus API "POST /s5/upload/tus": tusHandler,