QuickURL/expressHandler.js
2024-07-13 05:53:26 -05:00

17 lines
No EOL
339 B
JavaScript

const express = require("express"),
bodyParser = require("body-parser"),
paths = require("./fileHandler.js").paths
const PORT = process.env.PORT || 8080
const app = express()
app.use(express.static(paths.static))
app.listen(PORT, () => {
console.log("QuickURL now listening for PORT: " + PORT)
})
module.exports = {
app: app
}