From 1309e462efc4a7bbdf538e9d209133c1b3c138a6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 25 Oct 2018 22:22:55 +0200 Subject: Added authentication and post endpoint --- src/app.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 2a8636f..38dc6dc 100644 --- a/src/app.js +++ b/src/app.js @@ -16,6 +16,10 @@ const services = require('./services'); const appHooks = require('./app.hooks'); const channels = require('./channels'); +const sequelize = require('./sequelize'); + +const authentication = require('./authentication'); + const app = express(feathers()); // Load app configuration @@ -34,8 +38,11 @@ app.use('/', express.static(app.get('public'))); app.configure(express.rest()); app.configure(socketio()); +app.configure(sequelize); + // Configure other middleware (see `middleware/index.js`) app.configure(middleware); +app.configure(authentication); // Set up our services (see `services/index.js`) app.configure(services); // Set up event channels (see channels.js) -- cgit v1.2.3