/routes/blogRoutes.js const express = require('express'); const router = express.Router(); router.get('/blogs', (req, res) =>{ //do something }); module.exports = router; /app.js const blogRoutes = require('./routes/blogRoutes'); app.use(blogRoutes) //all of the blogRoutes handles will be used there. The order of middleware is important. app.use("/blog", blogRoutes) //this will help to remove so..