UNPKG

meme-magic

Version:

An A-Frame, React, Redux front-end with Sessions, Websockets, SQL, and Authentication built into the backend.

24 lines (19 loc) 670 B
'use strict'; import setVariables from './app-variables'; import setParsing from './parsing'; import setStatic from './static'; import setSecurity from './security'; export default (app, _db) => { // Force the context of this. app.setValue = app.set.bind(app); // Make a function that gets the path to this app. app.getValue = path => app.get(path); // Use the two above functions to give myself properties. setVariables(app); // Give myself a logging ability. app.use(app.getValue('log')); // Configure my static routes, security, and parsing abilities. setParsing(app, _db); setSecurity(app, _db); setStatic(app); };