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

20 lines
404 B
JavaScript

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