Run command to generate the UserModule
./node_modules/.bin/medex g --module UserModule
Run command to generate the UserMiddleware
./node_modules/.bin/medex g --module UserMiddleware
Add a simple console.log statement to check if the middleware is running
Associate the middleware with new module has just been generated
Run following commands to build new module and new middleware
npm run buildnpm run start
After server finish the boostrap process, login into medusa admin website , and try calling some APIs for only authenticated user, but the text "Go to middleware" is not appeared on my console
Expected behavior
The function in middleware should be triggered
Describe the bug My new middleware is not working for new module
To Reproduce Steps to reproduce the behavior:
./node_modules/.bin/medex g --module UserModule
./node_modules/.bin/medex g --module UserMiddleware
npm run build
npm run start
Expected behavior The function in middleware should be triggered
Package version: