Clean setup - nork v4, nothing else

This commit is contained in:
2024-04-29 21:26:04 +02:00
parent aa6643e023
commit 3f328e5316
8 changed files with 167 additions and 0 deletions

15
api/src/routes/index.ts Normal file
View File

@ -0,0 +1,15 @@
import { Request, Response, Router } from "express";
import path from "path";
//import authRoutes from "./authRoutes";
export const router = Router();
//router.use("/api/auth", authRoutes);
//router.get("*", (req: Request, res: Response) => {
// res.sendFile(path.join(__dirname, "../views/index.html"));
//});
// 404
router.use((req: Request, res: Response) => {
res.status(404).send("Error 404\n");
});