14 lines
297 B
JavaScript
14 lines
297 B
JavaScript
|
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)
|
||
|
})
|