12 lines
335 B
JavaScript
12 lines
335 B
JavaScript
|
import { PORT, staticPath } from "./constants.js"
|
||
|
import express from "express"
|
||
|
import { middleware } from "./pageUpdater.js"
|
||
|
|
||
|
export const app = express()
|
||
|
|
||
|
app.use(middleware)
|
||
|
app.use(express.static(staticPath))
|
||
|
|
||
|
app.listen(PORT, () => {
|
||
|
console.log("THE AWESOMEST YAOI GENERATOR OF ALL TIME is now listening on port: " + PORT)
|
||
|
})
|