collection added
This commit is contained in:
parent
61b98f23dc
commit
bf0257a5be
2
app.js
2
app.js
@ -18,7 +18,7 @@ connectDB();
|
||||
app.use("/uploads", express.static(path.join(__dirname, "uploads")));
|
||||
app.use(express.json());
|
||||
|
||||
app.use(cors());
|
||||
app.use(cors({ origin: true, methods: ["GET","POST","OPTIONS",…], allowedHeaders: ["Content-Type","Authorization"] }));
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello World!');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user