forked from Ermlab/nxt-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiV3.js
More file actions
30 lines (22 loc) · 1.05 KB
/
ApiV3.js
File metadata and controls
30 lines (22 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Generated by CoffeeScript 1.7.1
(function() {
var ApiBaseHTTP, debug,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
debug = require('debug')('gitlab:ApiV3');
ApiBaseHTTP = require('./ApiBaseHTTP').ApiBaseHTTP;
module.exports.ApiV3 = (function(_super) {
__extends(ApiV3, _super);
function ApiV3() {
this.handleOptions = __bind(this.handleOptions, this);
return ApiV3.__super__.constructor.apply(this, arguments);
}
ApiV3.prototype.handleOptions = function() {
ApiV3.__super__.handleOptions.apply(this, arguments);
this.options.base_url = 'api/v3';
return debug("handleOptions()");
};
return ApiV3;
})(ApiBaseHTTP);
}).call(this);