diff --git a/api/src/controllers/cacheController.ts b/api/src/controllers/cacheController.ts index cb5c575..9a8a403 100644 --- a/api/src/controllers/cacheController.ts +++ b/api/src/controllers/cacheController.ts @@ -15,8 +15,6 @@ export class CacheController { const items = CacheService.getCache("items"); const locales = CacheService.getCache("locales"); - console.log(items, locales); - const searchInput = query.toLowerCase().trim(); const locale = locales[localeId]; diff --git a/api/src/index.ts b/api/src/index.ts index 808010f..e89e989 100644 --- a/api/src/index.ts +++ b/api/src/index.ts @@ -18,10 +18,11 @@ new Elysia() } })) .use(cors({ allowedHeaders: "Origin, X-Requested-With, Content-Type, Accept" })) - .use(staticPlugin({ prefix: "/", alwaysStatic: true })) + .use(staticPlugin({ prefix: "/", indexHTML: true })) .use(Logestic.preset("fancy")) .use(api) - .get("*", () => Bun.file("public/index.html")) + .get("/search", () => Bun.file("public/index.html")) + .get("/search/*", () => Bun.file("public/index.html")) .listen(3000, (server) => { console.log(`Server is running at ${server.hostname}:${server.port}`); });