Add comment blocks for twilio get and post controllers
This commit is contained in:
@ -383,12 +383,23 @@ exports.getSteam = function(req, res, next) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GET /api/twilio
|
||||||
|
* Twilio API example.
|
||||||
|
*/
|
||||||
|
|
||||||
exports.getTwilio = function(req, res, next) {
|
exports.getTwilio = function(req, res, next) {
|
||||||
res.render('api/twilio', {
|
res.render('api/twilio', {
|
||||||
title: 'Twilio API'
|
title: 'Twilio API'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST /api/twilio
|
||||||
|
* Twilio API example.
|
||||||
|
*/
|
||||||
|
|
||||||
exports.postTwilio = function(req, res, next) {
|
exports.postTwilio = function(req, res, next) {
|
||||||
var message = {
|
var message = {
|
||||||
to: req.body.telephone,
|
to: req.body.telephone,
|
||||||
|
Reference in New Issue
Block a user