This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config(); // Load .env file | |
const express = require('express'); | |
const mongoose = require('mongoose'); | |
const cors = require('cors'); | |
const fetch = require('node-fetch'); | |
const connectDB = require('./db/connect'); | |
const app = express(); | |
// CORS configuration |