QuickURL/expressHandler.js

17 lines
339 B
JavaScript
Raw Normal View History

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