diff options
author | Cheng-Han, Wu | 2016-05-16 18:16:45 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-05-16 18:16:45 +0800 |
commit | eb5873a94d55528e944371c8fbae77a93201c8af (patch) | |
tree | 36680ab106d5185e7abe93b4be3e4610d9931305 /public/js | |
parent | 5bb4423309ddfd3a161c3ec2472e79067125553e (diff) |
Update to move gitlab api path to sub path and fix its find user method for PR #121
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js index 6163d293..e47b8c18 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1182,7 +1182,7 @@ ui.toolbar.export.gist.attr("href", noteurl + "/gist"); //export to snippet ui.toolbar.export.snippet.click(function() { ui.spinner.show(); - $.get(serverurl + '/gitlab') + $.get(serverurl + '/auth/gitlab/callback/' + noteid + '/projects') .success(function (data) { $("#snippetExportModalAccessToken").val(data.accesstoken); $("#snippetExportModalBaseURL").val(data.baseURL); @@ -1268,7 +1268,7 @@ ui.toolbar.import.gist.click(function () { //import from snippet ui.toolbar.import.snippet.click(function () { ui.spinner.show(); - $.get(serverurl + '/gitlab') + $.get(serverurl + '/auth/gitlab/callback/' + noteid + '/projects') .success(function (data) { $("#snippetImportModalAccessToken").val(data.accesstoken); $("#snippetImportModalBaseURL").val(data.baseURL); |