thinkjs/lib/Lib/Extend/Controller/RestController.js

15 lines
245 B
JavaScript

/**
* REST Controller
* @return {[type]} [description]
*/
module.exports = Controller(function(){
'use strict';
return {
__before: function(){
},
__call: function(){
this.end('method is not allowed');
}
}
})