Ganduuuu / app.js
swayamshetkar's picture
Rename server.js to app.js
538879b verified
raw
history blame contribute delete
367 Bytes
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}`)
})