adrien2p преди 2 години
родител
ревизия
8195ec0721
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/api/routes/admin/index.ts

+ 1 - 1
src/api/routes/admin/index.ts

@@ -6,7 +6,7 @@ import { authenticate, wrapHandler } from "@medusajs/medusa";
 
 const adminRouter = Router()
 export function getAdminRouter(adminCorsOptions): Router {
-  adminRouter.use("/admin", cors(adminCorsOptions), authenticate(), bodyParser.json())
+  adminRouter.use("/admin", cors(adminCorsOptions), bodyParser.json(), authenticate())
 
   adminRouter.post(
     "/my-custom-path",