summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/api.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-07-03 09:09:20 +0100
committerPhil Hughes <me@iamphill.com>2018-07-05 15:44:54 +0100
commit5428e913749b0c3b8f306167f585295434d944d6 (patch)
tree9756de0ac29eb2a9f6f781dfdd920d3aef93ed70 /app/assets/javascripts/api.js
parent6021ab6f779c81fa84ef042a66573c232cd74def (diff)
downloadgitlab-ce-5428e913749b0c3b8f306167f585295434d944d6.tar.gz
only include _html fields when asked for
Diffstat (limited to 'app/assets/javascripts/api.js')
-rw-r--r--app/assets/javascripts/api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js
index 0ca0e8f35dd..422becb7db8 100644
--- a/app/assets/javascripts/api.js
+++ b/app/assets/javascripts/api.js
@@ -100,12 +100,12 @@ const Api = {
},
// Return Merge Request for project
- mergeRequest(projectPath, mergeRequestId) {
+ mergeRequest(projectPath, mergeRequestId, params = {}) {
const url = Api.buildUrl(Api.mergeRequestPath)
.replace(':id', encodeURIComponent(projectPath))
.replace(':mrid', mergeRequestId);
- return axios.get(url);
+ return axios.get(url, { params });
},
mergeRequests(params = {}) {