Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-19 15:07:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-19 15:07:35 +0300
commite3764d340e2849fccee8c06278d1f5f686edd35b (patch)
tree23de7fe0eaa58a82c3a72eb8ff4a195e24627eb7 /app/assets/javascripts/api.js
parente3d67bcff7b8bc6a453d0814d404a9a61d97bc0f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/api.js')
-rw-r--r--app/assets/javascripts/api.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js
index 071ae8ca8cf..5e3932db235 100644
--- a/app/assets/javascripts/api.js
+++ b/app/assets/javascripts/api.js
@@ -142,6 +142,12 @@ const Api = {
return axios.get(url);
},
+ // Update a single project
+ updateProject(projectPath, data) {
+ const url = Api.buildUrl(Api.projectPath).replace(':id', encodeURIComponent(projectPath));
+ return axios.put(url, data);
+ },
+
/**
* Get all projects for a forked relationship to a specified project
* @param {string} projectPath - Path or ID of a project