collection added

This commit is contained in:
Jonathan Jara 2025-06-06 01:35:12 -07:00
parent bf0257a5be
commit e40836d60d

2
app.js
View File

@ -18,7 +18,7 @@ connectDB();
app.use("/uploads", express.static(path.join(__dirname, "uploads"))); app.use("/uploads", express.static(path.join(__dirname, "uploads")));
app.use(express.json()); 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) => { app.get('/', (req, res) => {
res.send('Hello World!'); res.send('Hello World!');