We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, Good job on Hono!
Followed this hono-example-blog example.
The route will become /post/post, not /post.
Index.ts should have this instead, think it would fix it.
app.route('/', middleware) app.route('/', api)
Am I wrong? Please explain to me in that case how you're suppose to you app.route correct.
The text was updated successfully, but these errors were encountered:
Hi @socketopp !
In that example, the route will become /api/posts. The path /posts will be appended to the path /api specified in route, and they will be merged:
/api/posts
/posts
/api
route
api.get('/posts', (c) => c.text('Hi')) //... app.route('/api', api) // GET /api/posts => Hi
Sorry, something went wrong.
No branches or pull requests
Hi,
Good job on Hono!
Followed this hono-example-blog example.
The route will become /post/post, not /post.
Index.ts should have this instead, think it would fix it.
Am I wrong? Please explain to me in that case how you're suppose to you app.route correct.
The text was updated successfully, but these errors were encountered: