Replies: 1 comment 3 replies
-
But @Middleware having { path: '*' } is working for [POST] /store/auth. @Middleware({ requireAuth: false, routes: [{ method: 'post', path: '*' }] })
export default class CustomerAuthorizationMiddleware implements MedusaMiddleware {
public consume(req: Request, res: Response, next: NextFunction): void | Promise<void> {
console.log('middleware Works?');
return next();
}
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am a newbie of medusa and medusa-extender.
I found out that I can overwrite middleware and some endpoints of Admin API has,
but for the Store APIs, such as /store/auth, @Middleware or @router decoration is not working as intended.
The above middleware is not called on [POST] /store/auth
Beta Was this translation helpful? Give feedback.
All reactions