Refactor Project Structure

This commit is contained in:
2025-10-09 11:30:38 +02:00
parent 21a4e1874f
commit f8bb3b837e
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ const port = 3000;
app.use(express.json());
const users = JSON.parse(fs.readFileSync('C:/Users/frederik/WebstormProjects/BruteForce/TEST_DATA/users.json', 'utf8'));
const users = JSON.parse(fs.readFileSync('TEST_DATA/users.json', 'utf8'));
app.post('/login', (req, res) => {
const {username, password} = req.body;
const user = users.find(u => u.username === username && u.password === password);
+14
View File
@@ -0,0 +1,14 @@
[
{
"username": "test",
"password": "test"
},
{
"username": "lower",
"password": "lol"
},
{
"username": "Gaylord",
"password": "Lol_123"
}
]