Spaces:
Runtime error
Runtime error
| const express = require('express') | |
| const app = express() | |
| const port = 5000 | |
| const path = require('path') | |
| function testing(){ | |
| } | |
| app.get('/', (req,res) => { | |
| res.send("TEST") | |
| }) | |
| app.get('/test', (req, res) => { | |
| res.sendFile(path.join(__dirname, 'test.html')) | |
| }) | |
| app.listen(port, '0.0.0.0', () => { | |
| console.log(`Server running on port ${port}`) | |
| }) |