Univerter/express.js
2024-07-29 00:45:58 -05:00

18 lines
323 B
JavaScript

const express = require("express"),
path = require("path")
const PORT = process.env.PORT || 8080
var staticPath = path.join(__dirname, "static")
var app = express()
app.use(express.static(staticPath))
app.listen(PORT, () => {
console.log("Univerter now listening on PORT: " + PORT)
})
module.exports = {
app
}