2023-09-06 14:16:33 -05:00
|
|
|
const express = require('express')
|
|
|
|
const app = express()
|
|
|
|
const port = 3000
|
|
|
|
|
2023-09-06 14:48:32 -05:00
|
|
|
let x = 0
|
2023-09-06 14:16:33 -05:00
|
|
|
app.get('/', (req, res) => {
|
2023-09-06 14:48:32 -05:00
|
|
|
res.send('Hello World!: ' + x);
|
|
|
|
x++;
|
2023-09-06 14:16:33 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
app.listen(port, () => {
|
|
|
|
console.log(`Example app listening on port ${port}`)
|
|
|
|
})
|