const app = new Hono<AppType>()
app.use(sentry())
app.get('path', async (c) => {
...
if (result.status == 200) {
return c.json(result.body);
} else {
throw new HTTPException(result.status || 500, {
message: result.message,
});
}
})
const app = new Hono<AppType>()
app.use(sentry())
app.get('path', async (c) => {
...
if (result.status == 200) {
return c.json(result.body);
} else {
throw new HTTPException(result.status || 500, {
message: result.message,
});
}
})