update: routes

This commit is contained in:
2025-09-26 11:06:04 +07:00
parent 7b2509ffa1
commit c0aca9ea87
5 changed files with 187 additions and 75 deletions

8
utils/captcha.js Normal file
View File

@@ -0,0 +1,8 @@
const svgCaptcha = require('svg-captcha');
function createCaptcha() {
const captcha = svgCaptcha.create({ size: 5, noise: 2, color: true });
return { svg: captcha.data, text: captcha.text };
}
module.exports = { createCaptcha };