API Placeholder in Route

I didn't found it in the docs. Is there any way to get a placeholder into a route like in express with /routename/:id so I can use it to get the resource with the respective id?
Solution:
exactly like that. That isn't Express syntax, that's the recommended REST syntax. you get the params through request.params.id, replace id with whatever you put in :id...
Jump to solution
1 Reply
Solution
Favna
Favna2y ago
exactly like that. That isn't Express syntax, that's the recommended REST syntax. you get the params through request.params.id, replace id with whatever you put in :id
Want results from more Discord servers?
Add your server