Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshitShukla-dev authored Oct 16, 2024
1 parent 62819a5 commit 5df0264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import cookieparser from "cookie-parser"

const app = express();

app.use(cors({ credentials: true, origin: true }));
app.use(cors());
app.use(express.json())
app.use(cookieparser())
app.use("/api/v1",rootRouter)

app.listen(process.env.PORT || 8080, function() {
console.log(`Listening on Port: ${process.env.PORT || 8080}`);
});
});

0 comments on commit 5df0264

Please sign in to comment.