setting up api more nad getting closer to the connection to backend and adding auth middleware almost

This commit is contained in:
talksik
2022-03-15 16:16:31 -04:00
parent e9a02eb091
commit 565b01cd8e
8 changed files with 52 additions and 25 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import express from "express";
import getAuthRoutes from "./auth";
import getUserRoutes from "./user";
export default function getRoutes() {
const router = express.Router();
router.use("/auth", getAuthRoutes());
router.use("/user", getUserRoutes());
return router;
}