setting up api more nad getting closer to the connection to backend and adding auth middleware almost
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user