summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/services/terminals.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-29 18:08:26 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-29 18:08:26 +0000
commitb64a8161c9442d82897a341d6bf935dd3e748b06 (patch)
treeb9953db8607d1393aa8ac588a15f184dd8e183f6 /app/assets/javascripts/ide/services/terminals.js
parent6e33325c1458cb31b4d36a7eec817fa00ec3faaf (diff)
downloadgitlab-ce-b64a8161c9442d82897a341d6bf935dd3e748b06.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ide/services/terminals.js')
-rw-r--r--app/assets/javascripts/ide/services/terminals.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/services/terminals.js b/app/assets/javascripts/ide/services/terminals.js
new file mode 100644
index 00000000000..17b4329037d
--- /dev/null
+++ b/app/assets/javascripts/ide/services/terminals.js
@@ -0,0 +1,15 @@
+import axios from '~/lib/utils/axios_utils';
+
+export const baseUrl = projectPath => `/${projectPath}/ide_terminals`;
+
+export const checkConfig = (projectPath, branch) =>
+ axios.post(`${baseUrl(projectPath)}/check_config`, {
+ branch,
+ format: 'json',
+ });
+
+export const create = (projectPath, branch) =>
+ axios.post(baseUrl(projectPath), {
+ branch,
+ format: 'json',
+ });