1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Internet_Security/app.js
2020-05-11 10:51:30 +02:00

17 lines
428 B
JavaScript

let express = require("express");
let morgan = require("morgan");
let indexRoute = require("./routes/index");
let notFoundRoute = require("./routes/notFound");
let errorRoute = require("./routes/error");
let app = express();
app.use(morgan("dev"))
.use(express.static("public"))
.set("view engine", "pug")
.use("/", indexRoute)
.use(notFoundRoute)
.use(errorRoute)
.listen(process.env.PORT || 8080);