text: "use strict";
  var __importDefault = (this && this.__importDefault) || function (mod) {
      return (mod && mod.__esModule) ? mod : { "default": mod };
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  var express_1 = require("express");
  var validate_middleware_1 = __importDefault(require("../middleware/validate.middleware"));
  var auth_schemas_1 = require("../schemas/auth.schemas");
  var auth_controller_1 = require("../controllers/auth.controller");
  var auth_middleware_1 = require("../middleware/auth.middleware");
  var router = (0, express_1.Router)();
  router.post('/register', (0, validate_middleware_1.default)(auth_schemas_1.registerSchema), auth_controller_1.registerHandler);
  router.post('/login', (0, validate_middleware_1.default)(auth_schemas_1.loginSchema), auth_controller_1.loginHandler);
  router.get('/me', auth_middleware_1.protect, auth_controller_1.getCurrentHandler);
  router.get('/logout', auth_middleware_1.protect, auth_controller_1.logoutHandler);
  exports.default = router;
  