const path = require('path') const fs = require('fs') blogs = JSON.parse(fs.readFileSync(path.join(__dirname, '../data/blogs.json')).toString())