fix brotli cached

This commit is contained in:
Rizky
2024-06-28 00:09:21 +07:00
parent e72f491193
commit 4367723a46
3 changed files with 36 additions and 11 deletions
-9
View File
@@ -12,15 +12,6 @@ import { prodIndex } from "utils/prod-index";
export const createServer = async () => {
g.router = createRouter({ strictTrailingSlash: true });
g.api = {};
g.cache = {
br: {},
gz: {},
br_progress: {
pending: {},
running: false,
timeout: null,
},
};
const scan = async (path: string, root?: string) => {
const apis = await listAsync(path);
if (apis) {