Open aleclarson opened 6 days ago
Perhaps go with an Express-like solution?
export const myRoute = route.get('/my-route', cors(), async () => { … })
Note that middleware is already supported with @hattip/compose: https://github.com/hattipjs/hattip/tree/main/packages/base/compose
@hattip/compose
Perhaps go with an Express-like solution?