diff --git a/server.js b/server.js index 828f6cd..baf9c7b 100644 --- a/server.js +++ b/server.js @@ -142,7 +142,7 @@ app.get('/classe', async (req, res) => { } }); -app.get('/test', (req, res) => { +app.get('/', (req, res) => { res.json({ status: 'ok', message: 'Server funzionante', @@ -152,6 +152,6 @@ app.get('/test', (req, res) => { app.listen(port, () => { console.log(`API attiva su http://localhost:${port}`); - console.log(`Test: http://localhost:${port}/test`); + console.log(`Stato API: http://localhost:${port}/`); console.log(`Esempio: http://localhost:${port}/classe?classe=1A`); }); \ No newline at end of file