D
Deno
A
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
Join
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
how to document oak api
B
big / help
3y ago
What's the correct way to build an api using oak?
P
Perro Pepsi / help
17mo ago
HTTPS Oak Deno
I
ivandpf / help
3y ago