Use the Router decorator to add custom routes #99
-
Hello, I am wondering if there is a special requirement for the controler to be passed in the handlers array in order to create a custom route. `import { Router } from 'medusa-extender'; @router({ Having tried with the code above the code compiled without error. But the requests am sending never end. What am I missing to successfully add and use a custom route using medusa-extender Router decorator? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there, I suggest that those kind of questions are created under an issue and not a discussion for the next time. So that we keep the discussion for discussion purpose First of all, your handler never send any response, it is just setting a status and that's it. For more example, you can look at the integration tests that are a good source of examples here https://github.com/adrien2p/medusa-extender/tree/main/integration-tests/tests |
Beta Was this translation helpful? Give feedback.
Hi there, I suggest that those kind of questions are created under an issue and not a discussion for the next time. So that we keep the discussion for discussion purpose☺️
First of all, your handler never send any response, it is just setting a status and that's it.
For more example, you can look at the integration tests that are a good source of examples here https://github.com/adrien2p/medusa-extender/tree/main/integration-tests/tests