QuickURL/expressHandler.js

14 lines
297 B
JavaScript
Raw Normal View History

2024-07-13 04:00:15 -05:00
const express = require("express"),
path = require("path")
const PORT = process.env.PORT || 8080
const app = express()
const staticPath = path.join(__dirname, "static")
app.use(express.static(staticPath))
app.listen(PORT, () => {
console.log("QuickURL now listening for PORT: " + PORT)
})