Skip to content

Commit

Permalink
Update app.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AydanPirani authored Apr 14, 2024
1 parent 74521cd commit ae64510
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { StatusCodes } from "http-status-codes";
import { Config } from "./config";
import { connectToDatabase } from "./utilities";

import cors from "cors";
import morgan from "morgan";
import bodyParser from "body-parser";
import errorHandler from "./middleware/error-handler";
Expand All @@ -17,6 +18,8 @@ const app = express();
// (we can remove this later)
app.disable("etag");

app.use(cors());

// To display the logs every time
app.use("/", morgan("dev"));

Expand Down

0 comments on commit ae64510

Please sign in to comment.