added endpoints to fetch captchas

This commit is contained in:
2025-05-03 23:53:09 +03:00
parent 86898fa117
commit 9c2fe1c856
3 changed files with 39 additions and 0 deletions

View File

@@ -6,5 +6,7 @@ import auth from '../middlewares/auth.js';
const CaptchaRouter = new Router();
CaptchaRouter.post('/captcha/submit', auth.verify_user_jwt, CaptchaController.submit);
CaptchaRouter.get('/captcha/all', CaptchaController.get_all);
CaptchaRouter.get('/captcha/:id', CaptchaController.get);
export default CaptchaRouter;