collection added
This commit is contained in:
parent
bf0257a5be
commit
e40836d60d
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({ origin: true, methods: ["GET","POST","OPTIONS",…], allowedHeaders: ["Content-Type","Authorization"] }));
|
||||
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