|
|
|
@ -9,7 +9,7 @@ router.post('/register', (req, res) => {
|
|
|
|
|
return res.status(400).json({ error: 'Username and password are required' }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
execSync(`create-user ${username} ${password}`, (error, stdout, stderr) => { |
|
|
|
|
execSync(`./scripts/create-user ${username} ${password}`, (error, stdout, stderr) => { |
|
|
|
|
if (error) { |
|
|
|
|
console.log('errer') |
|
|
|
|
if (error.message.includes('already exists')) { |
|
|
|
|