const fs = require('fs') const path = require('path') const router = require('express').Router() const mongoose = require('mongoose') const pkg = require('../package.json') require('./utils/mongoose') const folderPath = path.resolve(__dirname, './routers') const folders = fs.readdirSync(folderPath) router.get('/', async (req, res) => { // throw new Error('check error message') res.send(`