This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
// Controllers contain the functions and businnes logics of our Express JS application
// Allows us to use the contents of the "Task.js" file in the "models" folder
constTask=require("../models/Task");
// Controller function for getting all the tasks
module.exports.gettasks=()=>{
returnTask.find({}).then(result=>{
// the "return" statement, returns the result of the Mongoose method "find" back to the "taskRoute.js" file which invoke this function