init commit

This commit is contained in:
Mikayla Dobson
2022-07-08 12:00:48 -05:00
commit 5da024ef05
28 changed files with 4813 additions and 0 deletions

12
server/loaders/index.js Normal file
View File

@@ -0,0 +1,12 @@
const expressLoader = require('./express');
const passportLoader = require('./passport');
const apiLoader = require('./api');
// app is passed in from 'index.js' at the server directory level
module.exports = async (app) => {
const express = await expressLoader(app);
const passport = await passportLoader(express);
// we may include passport here to assist with user auth flows
await apiLoader(app, passport);
}