Initialized Project with default middlewares and helpers, connected to Atlas Instance and created Swagger Setup. Created necessary DB models and authentication-authorization logic
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Router } from "express";
|
||||
import {
|
||||
createUserController,
|
||||
loginController,
|
||||
renewAccessTokenController,
|
||||
} from "../controllers/user.controller";
|
||||
|
||||
const router = new Router();
|
||||
|
||||
router.post("/create", createUserController);
|
||||
router.post("/login", loginController);
|
||||
router.post("/token/renew", renewAccessTokenController);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user