-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
express-wrapper (and express) expects path params denoted as api/v1/someapi/:param/someendpoint:
api-ts/packages/express-wrapper/src/index.ts
Line 144 in 5467fb4
| router[method](httpRoute.path, handlers); |
Whereas the superagent-wrapper expects paths with params denoted as api/v1/someapi/{param}/someendpoint.
| path = path.replace(`{${key}}`, reqProps.params[key]); |
This creates the inability to satisfy both requirements / send path params through superagent-wrapper while using io-ts-http and express-wrapper.
Example in test:
| path: '/test/{id}', |
| testApp.post('/test/:id', (req, res) => { |
Metadata
Metadata
Assignees
Labels
No labels