import { Router, type IRouter } from 'express';
import { authenticate } from '../middlewares/auth.middleware.js';
import * as ctrl from '../controllers/admin-impersonate.controller.js';

const router: IRouter = Router();
router.use(authenticate);

router.post('/', ctrl.startImpersonation);
router.post('/stop', ctrl.stopImpersonation);

export default router;
