Skip to content

Instantly share code, notes, and snippets.

@tarlepp
Forked from jdcauley/gist:8984009
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save tarlepp/8984046 to your computer and use it in GitHub Desktop.

Select an option

Save tarlepp/8984046 to your computer and use it in GitHub Desktop.
module.exports = {
index: function (req,res) {
File.find().exec(function(err, files) {
res.view({
files: files,
user: req.user
});
});
},
/**
* Overrides for the settings in `config/controllers.js`
* (specific to AuthController)
*/
_config: {}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment