6 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Cyb3r-Jak3
Cyb3r-Jak33y ago
Hono easily gives you access to query parameters https://honojs.dev/docs/api/context/#creq. An example listed is
// Captured params
app.get('/entry/:id', (c) => {
const id = c.req.param('id')
...
})
// Captured params
app.get('/entry/:id', (c) => {
const id = c.req.param('id')
...
})
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Max (@rozenmd)
Max (@rozenmd)OP3y ago
and they're type checked magically
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Max (@rozenmd)
Max (@rozenmd)OP3y ago
it's a different way to do it - hono gives you a whole express-like framework, which backend devs may be more familiar with

Did you find this page helpful?