Skip to content

Instantly share code, notes, and snippets.

@ktkaushik
Created July 25, 2013 13:32
Show Gist options
  • Select an option

  • Save ktkaushik/6079670 to your computer and use it in GitHub Desktop.

Select an option

Save ktkaushik/6079670 to your computer and use it in GitHub Desktop.
Sails controller and model
/**
* Article
*
* @module :: Model
* @description :: A short summary of how this model works and what it represents.
*
*/
module.exports = {
attributes: {
/* e.g.
nickname: 'string'
*/
}
};
/**
* ArticlesController
*
* @module :: Controller
* @description :: Contains logic for handling requests.
*/
module.exports = {
/* e.g.
sayHello: function (req, res) {
res.send('hello world!');
}
*/
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment