adding results

This commit is contained in:
nate@necloud.us committed 2025-07-02 14:15:45 -04:00
1 parent 49e2d58fae
commit 3e6c02e4d2
6 files changed
+152 -39

No files matched your search

+4
View File
@@ -49,5 +49,9 @@ app.post('/saveWordList', (req, res) => {
fs.writeFileSync('public/wordlists.json', JSON.stringify(data, null, 2))
res.send(`✅ Word list saved for ${username}`)
})
app.get('/getResults', (req, res) => {
const results = JSON.parse(fs.readFileSync('public/results.json', 'utf-8'))
res.json(results)
})
app.listen(PORT, () => console.log(`Server running on http://localhost:${PORT}`))