skip to Main Content

Unable to connect to route with express js – Javascript

Trying to connect the API through Route is not responding , Getting the status error: "not connected" restaurants.route.js Integrated The Route Here import express from "express" const router = express.Router() router.route('/api/v1/restaurants').get((req,res) => res.send("helloworld")) export default router index.js Connect to MongoDB.…

VIEW QUESTION
Back To Top
Search