Skip to content

Instantly share code, notes, and snippets.

View WINOFFRG's full-sized avatar

Rohan Gupta WINOFFRG

View GitHub Profile
@WINOFFRG
WINOFFRG / app.js
Created September 29, 2021 13:52
Express Server Setup
const express = require('express');
const cors = require('cors');
const app = express();
const port = 5000;
const BASE_URL = '/api';
app.use(cors());
app.get(`${BASE_URL}`, async (req, res) => {