Working on auth route

This commit is contained in:
2024-04-29 21:56:25 +02:00
parent 3f328e5316
commit ff8cc4cccf
3 changed files with 43 additions and 2 deletions

View File

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