defined auth route on api, attempting to connect to front end

This commit is contained in:
Mikayla Dobson
2022-11-21 11:22:00 -06:00
parent 1b08598799
commit 57a16e429e
10 changed files with 80 additions and 53 deletions

View File

@@ -5,7 +5,7 @@ import cors from 'cors';
import session from 'express-session';
import pgSessionStore from '../db/sessionStore';
export const expressLoader = (app: Express) => {
export const expressLoader = async (app: Express) => {
app.use(cors());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));