"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.authRoutes = void 0;
const authController_js_1 = require("../controllers/authController.js");
const validation_js_1 = require("../middleware/validation.js");
const express_1 = require("express");
const router = (0, express_1.Router)();
exports.authRoutes = router;
router.post("/register", (0, validation_js_1.validate)(validation_js_1.registerSchema), authController_js_1.AuthController.register);
router.post("/login", (0, validation_js_1.validate)(validation_js_1.loginSchema), authController_js_1.AuthController.login);
