Piccolo improvement
This commit is contained in:
@@ -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`);
|
||||
});
|
||||
Reference in New Issue
Block a user