mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00
Update to move gitlab api path to sub path and fix its find user method for PR #121
This commit is contained in:
parent
5bb4423309
commit
eb5873a94d
3 changed files with 52 additions and 32 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue