user route for getting friendships

This commit is contained in:
Mikayla Dobson
2022-11-23 11:20:44 -06:00
parent d2d38bf7dd
commit d984ea64eb
15 changed files with 112 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
import express from 'express';
import path from 'path';
import cors from 'cors';
import dotenv from 'dotenv';
dotenv.config();
@@ -9,7 +10,10 @@ const port = 8080;
const app = express();
app.use(cors());
export const appRoot = path.resolve(__dirname);
(async function() {
const app = express();
await loaders(app);
app.listen(port, () => {