CartoDB-SQL-API/app/controllers/generic_controller.js

15 lines
279 B
JavaScript
Raw Normal View History

'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));
};
GenericController.prototype.handleRequest = function(req, res) {
res.end();
};
module.exports = GenericController;