xssbook/index.js
2023-01-19 23:50:15 -05:00

14 lines
No EOL
311 B
JavaScript

const express = require('express')
const app = express()
const port = 8080
app.use(express.json());
app.use(express.static('public'))
app.get('/', (req, res) => {
res.sendFile('login.html', { root: './public' })
})
app.listen(port, () => {
console.log(`App listening on port http://127.0.0.1:${port}`)
})