"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.auth0Router = void 0;
const express_1 = require("express");
const auth0_1 = require("../../validators/auth0");
const auth0_2 = require("../controller/auth0");
const validateBody_1 = require("../middlewares/validateBody");
const validateUser_1 = require("../middlewares/validateUser");
const router = (0, express_1.Router)();
router.post('/update-profile', validateUser_1.validateUser, (0, validateBody_1.validateBody)(auth0_1.updateProfileSchema), auth0_2.updateProfile);
router.post('/update-password', validateUser_1.validateUser, (0, validateBody_1.validateBody)(auth0_1.updatePasswordSchema), auth0_2.updatePassword);
router.get('/profile', validateUser_1.validateUser, auth0_2.getProfile);
exports.auth0Router = router;
//# sourceMappingURL=auth0.js.map