feat: use hono compress

This commit is contained in:
DIYgod
2024-03-01 21:11:15 +08:00
parent ba1bdf9bdc
commit 7af2a2ae27
+2
View File
@@ -2,6 +2,7 @@ import '@/utils/request-wrapper';
import { Hono } from 'hono';
import { compress } from 'hono/compress';
import cache from '@/middleware/cache';
import template from '@/middleware/template';
import sentry from '@/middleware/sentry';
@@ -21,6 +22,7 @@ process.on('uncaughtException', (e) => {
const app = new Hono();
app.use(compress());
app.use('*', sentry);
app.use('*', accessControl);
app.use('*', debug);