Join Slack
Powered by
How do I create the route that receives a paramete...
# typescript
e
echoing-zebra-28421
07/20/2021, 4:58 PM
How do I create the route that receives a parameter in the url of
/api/pets/$id
?
echoing-zebra-28421
07/20/2021, 5:00 PM
Could it be something like that?
routeKey: "GET /api/pets/{id}",
m
miniature-musician-31262
07/22/2021, 5:24 AM
Yep, that’s right —
{id}
, for example, with `awsx`:
🙌 1
Open in Slack
Previous
Next