summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/api.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-12-13 23:26:26 -0600
committerMike Greiling <mike@pixelcog.com>2016-12-14 02:11:13 -0600
commit8e0e902b133f33b38ffaa743ac3f3297b4bceb2d (patch)
tree6f35057e1dcf2de5c959d7007986b72c23dfb948 /app/assets/javascripts/api.js
parent23f5865e184c1738df86893d31392faf4bc2bad7 (diff)
downloadgitlab-ce-8e0e902b133f33b38ffaa743ac3f3297b4bceb2d.tar.gz
resolve all instances of no-undef eslint rule violationsclean-no-undef
Diffstat (limited to 'app/assets/javascripts/api.js')
-rw-r--r--app/assets/javascripts/api.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js
index 1c625e2f2b1..81c1e01901e 100644
--- a/app/assets/javascripts/api.js
+++ b/app/assets/javascripts/api.js
@@ -1,6 +1,7 @@
-/* eslint-disable func-names, space-before-function-paren, quotes, object-shorthand, camelcase, no-var, no-undef, comma-dangle, prefer-arrow-callback, indent, object-curly-spacing, quote-props, no-param-reassign, padded-blocks, max-len */
+/* eslint-disable func-names, space-before-function-paren, quotes, object-shorthand, camelcase, no-var, comma-dangle, prefer-arrow-callback, indent, object-curly-spacing, quote-props, no-param-reassign, padded-blocks, max-len */
+
(function() {
- this.Api = {
+ var Api = {
groupsPath: "/api/:version/groups.json",
groupPath: "/api/:version/groups/:id.json",
namespacesPath: "/api/:version/namespaces.json",
@@ -140,4 +141,5 @@
}
};
+ window.Api = Api;
}).call(this);