DenoDDeno
Powered by
abiA
Deno•3y ago•
1 reply
abi

Adding methods to Oak's Context?

I am trying to figure out how to configure my Oak application/router so that my routes can do things like
ctx.customMethod()
ctx.customMethod()
, could someone point me in the right direction? I can only really find how to customize the
State
State
, but that would only let me do
ctx.state.customMethod()
ctx.state.customMethod()
– is that how you're supposed to do it instead of what I had in mind?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

how to document oak api
bigBbig / help
3y ago
What's the correct way to build an api using oak?
Perro PepsiPPerro Pepsi / help
17mo ago
HTTPS Oak Deno
ivandpfIivandpf / help
3y ago