setting up api more nad getting closer to the connection to backend and adding auth middleware almost

This commit is contained in:
talksik
2022-03-15 16:16:31 -04:00
parent e9a02eb091
commit 565b01cd8e
8 changed files with 52 additions and 25 deletions
+1 -3
View File
@@ -1,13 +1,11 @@
import express, { Application, Request, Response } from "express";
import { NextFunction } from "express";
import cors from "cors";
import getRoutes from "./routes";
const cors = require("cors");
const app = express();
app.use(cors());
app.use((req: Request, res: Response, next: NextFunction) => {