setting up api more nad getting closer to the connection to backend and adding auth middleware almost
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user