Should I use module.exports {} or class in JS
Hi ,
I need a recommendation of coding guide when it comes to controller method inside the node app. such as either to go with
module.exports = {
index: async (req, res) => {
try {
const authors = await Author.find({}).sort...