Skip to content

Commit

Permalink
sails generate controller Post create show index update delete
Browse files Browse the repository at this point in the history
  • Loading branch information
rmg committed Apr 20, 2017
1 parent b5b7416 commit ee3d761
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions sails-blog/api/controllers/PostController.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/**
* PostController
*
* @description :: Server-side logic for managing Posts
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/

module.exports = {



/**
* `PostController.create()`
*/
create: function (req, res) {
return res.json({
todo: 'create() is not implemented yet!'
});
},


/**
* `PostController.show()`
*/
show: function (req, res) {
return res.json({
todo: 'show() is not implemented yet!'
});
},


/**
* `PostController.index()`
*/
index: function (req, res) {
return res.json({
todo: 'index() is not implemented yet!'
});
},


/**
* `PostController.update()`
*/
update: function (req, res) {
return res.json({
todo: 'update() is not implemented yet!'
});
},


/**
* `PostController.delete()`
*/
delete: function (req, res) {
return res.json({
todo: 'delete() is not implemented yet!'
});
}
};

0 comments on commit ee3d761

Please sign in to comment.