diff --git a/controllers/api.js b/controllers/api.js index 0d2cade2cf..1437488f9e 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -262,6 +262,11 @@ exports.getTwitter = function(req, res, next) { }); }; +/** + * POST /api/twitter + * @param tweet + */ + exports.postTwitter = function(req, res, next) { req.assert('tweet', 'Tweet cannot be empty.').notEmpty();