6 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Cyb3r-Jak3
Cyb3r-Jak32y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Max (@rozenmd)
Max (@rozenmd)OP2y ago
and they're type checked magically
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Max (@rozenmd)
Max (@rozenmd)OP2y 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
Want results from more Discord servers?
Add your server