diff --git a/api.planx.uk/modules/file/routes.ts b/api.planx.uk/modules/file/routes.ts index 239687f474..6c556e3ed3 100644 --- a/api.planx.uk/modules/file/routes.ts +++ b/api.planx.uk/modules/file/routes.ts @@ -17,6 +17,7 @@ const router = Router(); router.post( "/public/upload", multer().single("file"), + useTeamEditorAuth, validate(uploadFileSchema), publicUploadController, ); @@ -24,7 +25,6 @@ router.post( router.post( "/private/upload", multer().single("file"), - useTeamEditorAuth, validate(uploadFileSchema), privateUploadController, ); diff --git a/api.planx.uk/server.ts b/api.planx.uk/server.ts index b21b55d8dc..0886e7ec98 100644 --- a/api.planx.uk/server.ts +++ b/api.planx.uk/server.ts @@ -178,7 +178,6 @@ app.use("/webhooks", webhookRoutes); app.use("/analytics", analyticsRoutes); app.use("/admin", adminRoutes); app.use(ordnanceSurveyRoutes); -app.use(fileRoutes); app.use("/file", fileRoutes); app.use("/gis", router);