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

20 lines
509 B
JavaScript
Raw Normal View History

2020-05-11 10:51:30 +02:00
let express = require("express");
let morgan = require("morgan");
let indexRoute = require("./routes/index");
2020-05-11 12:10:22 +02:00
let checkMail = require("./routes/checkMail");
2020-05-11 10:51:30 +02:00
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)
2020-05-11 12:10:22 +02:00
.use("/checkmail", checkMail)
2020-05-11 10:51:30 +02:00
.use(notFoundRoute)
.use(errorRoute)
.listen(process.env.PORT || 8080);