import { loginValidators, signUpValidators, } from "../services/auth/auth.validator"; import { SignIn, SignUp, AuthBack } from "../controllers/auth.controller"; import { Router } from "express"; import { validator } from "../middlewares/validator.middleware"; import { checkLogs, isLoggedIn } from "../middlewares/auth.middleware"; const authRouter = Router(); authRouter.route("/sign-in").post(loginValidators, validator, SignIn); // authRouter.route("/sign-up").post(signUpValidators, validator, SignUp); authRouter.route("/").get(checkLogs, isLoggedIn, AuthBack); export default authRouter;