const router = express.Router<$Request, $Response>();
router.use('/hono', async (req, res, next) => {
honoApp
.request(req, {
raw: res,
passThrough: next,
})
.then(honoResponse => {
if (!honoResponse) {
console.log(honoResponse);
return next();
} // Pass through if not handled by Hono
})
.catch(next);
});
const router = express.Router<$Request, $Response>();
router.use('/hono', async (req, res, next) => {
honoApp
.request(req, {
raw: res,
passThrough: next,
})
.then(honoResponse => {
if (!honoResponse) {
console.log(honoResponse);
return next();
} // Pass through if not handled by Hono
})
.catch(next);
});