Do we have any way to set something like /api/v1 in the routers? #264
hoangtranson
started this conversation in
General
Replies: 1 comment
-
|
Hi @hoangtranson , Your question gave me an idea on how to define specific route in oak router. regards |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Presently, I am working on Deno project and I have to add
/api/v1on every single route.Just don't know if we can have something like this.
In the https://github.com/oakserver/oak/blob/main/router.ts, we allow to set prefix like:
But this is kinda weird for me :D
Beta Was this translation helpful? Give feedback.
All reactions