2015-12-04 00:28:18 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
function GenericController() {
|
|
|
|
}
|
|
|
|
|
2015-12-04 01:43:13 +08:00
|
|
|
GenericController.prototype.route = function (app) {
|
2015-12-04 01:19:39 +08:00
|
|
|
app.options('*', this.handleRequest.bind(this));
|
2015-12-04 00:28:18 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
GenericController.prototype.handleRequest = function(req, res) {
|
|
|
|
res.end();
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = GenericController;
|