Fix: route for frontend

This commit is contained in:
Filip Rojek 2024-05-16 15:41:24 +02:00
parent c89dfa6786
commit c9b8246218

View File

@ -5,9 +5,9 @@ export const router = Router();
router.use("/api/v1", api_v1); router.use("/api/v1", api_v1);
//router.get("*", (req: Request, res: Response) => { router.get("*", (req: Request, res: Response) => {
// res.sendFile(path.join(__dirname, "../views/index.html")); res.sendFile(path.join(__dirname, "../public/index.html"));
//}); });
// 404 // 404
router.use((req: Request, res: Response) => { router.use((req: Request, res: Response) => {