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