diff --git a/routes/register.js b/routes/register.js index 4c12a2b..05ab09d 100644 --- a/routes/register.js +++ b/routes/register.js @@ -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')) {