Added: auth logout api
This commit is contained in:
@ -3,7 +3,7 @@ import * as authController from "../controllers/authController";
|
||||
import validate from '../middlewares/validateRequest'
|
||||
import * as AuthVal from '../validators/authValidator'
|
||||
//import handleValidation from "../middlewares/handleValidation";
|
||||
//import { requireAuth } from "../middlewares/authMiddleware";
|
||||
import { requireAuth } from "../middlewares/authMiddleware";
|
||||
|
||||
const router = Router();
|
||||
|
||||
@ -11,6 +11,7 @@ const router = Router();
|
||||
|
||||
router.post("/auth/signup",validate(AuthVal.signup) , authController.signup_post);
|
||||
router.post("/auth/signin",validate(AuthVal.signin) , authController.signin_post);
|
||||
router.post("/auth/logout", requireAuth, authController.logout_post);
|
||||
|
||||
//router.post(
|
||||
// "/login",
|
||||
|
Reference in New Issue
Block a user