2023-10-20 21:53:49 -05:00
|
|
|
const express = require('express'),
|
|
|
|
path = require('path')
|
|
|
|
|
|
|
|
var app = express()
|
|
|
|
|
|
|
|
const PORT = process.env.PORT || 8080
|
|
|
|
|
|
|
|
const staticpath = path.join(__dirname, (process.env.STATIC_PATH || 'static/'))
|
|
|
|
|
|
|
|
app.use(express.static(staticpath))
|
|
|
|
|
2023-11-03 13:01:13 -05:00
|
|
|
app.get("/curl", (req, res) => {
|
|
|
|
res.sendFile(path.join(__dirname, "resources/curl"))
|
|
|
|
})
|
|
|
|
|
2023-10-20 21:53:49 -05:00
|
|
|
app.listen(PORT, () => {
|
|
|
|
console.log("Violets-Purgatory is now listening on port: " + PORT)
|
|
|
|
})
|
|
|
|
|