const Promise = require('promise'); const sql = require('../utils/sql'); module.exports= { /** * Responsible for querying the database and displaying all * categories that the blog has in the sidebar * * @param res * @return {*|Promise} */ main: function(res) { console.log("sidebar called"); return new Promise(function(resolve, reject) { res.write("
"); res.write("

Categories

"); res.write(""); resolve(); }) }); } };