From c9b82462187b3e69cb30d3c868d55a50c90b71e8 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Thu, 16 May 2024 15:41:24 +0200 Subject: [PATCH] Fix: route for frontend --- api/src/routes/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/routes/index.ts b/api/src/routes/index.ts index f81dee8..4357db5 100644 --- a/api/src/routes/index.ts +++ b/api/src/routes/index.ts @@ -5,9 +5,9 @@ export const router = Router(); router.use("/api/v1", api_v1); -//router.get("*", (req: Request, res: Response) => { -// res.sendFile(path.join(__dirname, "../views/index.html")); -//}); +router.get("*", (req: Request, res: Response) => { + res.sendFile(path.join(__dirname, "../public/index.html")); +}); // 404 router.use((req: Request, res: Response) => {