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:Jump to 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
...1 Reply
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