Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay1812 committed Nov 4, 2024
1 parent a995666 commit 413d9b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const express = require('express')
const mongoose = require('mongoose')
const cors = require('cors')
// const cors = require('cors')
const adminRouter = require('./routes/admin.js')
const app = express()
require('dotenv').config()

app.use(express.json())
app.use(cors())
// app.use(cors())

app.use('/admin', adminRouter)

Expand Down

0 comments on commit 413d9b6

Please sign in to comment.