mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-18 14:26:56 +00:00
22 lines
326 B
JavaScript
22 lines
326 B
JavaScript
'use strict';
|
|
/**
|
|
* rest controller
|
|
* @type {Class}
|
|
*/
|
|
module.exports = think.controller('rest', {
|
|
/**
|
|
* init
|
|
* @param {Object} http []
|
|
* @return {} []
|
|
*/
|
|
init(http){
|
|
this.super('init', http);
|
|
},
|
|
/**
|
|
* before magic method
|
|
* @return {Promise} []
|
|
*/
|
|
__before: function(){
|
|
|
|
}
|
|
}); |