DenoDDeno
Powered by
alexp95A
Denoβ€’3y agoβ€’
1 reply
alexp95

Get a Parameter Value in Oak

so if I set up a router like this
router.get("/:id", (ctx) => {/*handle router context*/})
router.get("/:id", (ctx) => {/*handle router context*/})
then how do I get the value of the id parameter? I have tried ctx.id and it did not accept it
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

get in oak
dan.the.discloserDdan.the.discloser / help
4y ago
How do I have a subrouter in Oak?
alexp95Aalexp95 / help
3y ago