ldap user

This commit is contained in:
2020-05-01 17:57:25 -04:00
parent 7d9ea08ec9
commit 607a5f33af
15 changed files with 349 additions and 135 deletions
+9 -4
View File
@@ -3,11 +3,19 @@
const path = require('path');
const ejs = require('ejs')
const express = require('express');
const middleware = require('./middleware/auth');
// Set up the express app.
const app = express();
// Allow the express app to be exported into other files.
module.exports = app;
// Build the conf object from the conf files.
app.conf = require('./conf/conf');
// Hold onto the auth middleware
const middleware = require('./middleware/auth');
// load the JSON parser middleware. Express will parse JSON into native objects
// for any request that has JSON in its content type.
app.use(express.json());
@@ -51,6 +59,3 @@ app.use(function(err, req, res, next) {
res.status(err.status || 500);
res.json({name: err.name, message: err.message});
});
// Allow the express app to be exported into other files.
module.exports = app;