You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openNG/app.js

21 lines
400 B
JavaScript

'use strict';
const express = require("express");
const bodyParser = require("body-parser");
const path = require("path");
let app = express();
app.set("view engine", "pug");
app.set("views", path.join(__dirname, "views"));
app.use(express.static(path.join(__dirname, "public")));
app.use(bodyParser.urlencoded({
extended: true
}));
app.use("/", require("./routes/index"));
app.listen(3000);