let UserRecipes = require(`${__dirname}/../schemas.js`).UserRecipes;

module.exports = {
  signup: (req, res) => {

  },

  login: (req, res) => {

  },

  logout: (req, res) => {

  },

  //Gets all the recipes that belong to that user
  getProfile: (req, res) => {
    UserRecipes.findOne({
      username: req.params.username
    }).then(result => {
      res.status(200).send(result);
    }).catch(error => {
      res.status(404).send(error);
    });
  }
};
@@ -7,17 +7,16 @@
 erRecipe
-s
  = requi
@@ -58,17 +58,16 @@
 erRecipe
-s
 ;%0A%0Amodul
@@ -272,17 +272,16 @@
 erRecipe
-s
 .findOne

Remove 's' from UserRecipe(s) in user controller