Fix VCS endpoint

This commit is contained in:
Matej Bačo committed 2023-08-06 10:50:41 +02:00
1 parent 54c42e08cb
commit 7d62f90e7f
4 files changed
+4 -4

No files matched your search

@@ -47,7 +47,7 @@
function connectGitHub() {
const redirect = new URL($page.url);
redirect.searchParams.append('github-installed', 'true');
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
const target = new URL(`${sdk.forProject.client.config.endpoint}/vcs/github/authorize`);
target.searchParams.set('projectId', $page.params.project);
target.searchParams.set('success', redirect.toString());
target.searchParams.set('failure', redirect.toString());
@@ -36,7 +36,7 @@
function connectGitHub() {
const redirect = new URL($page.url);
redirect.searchParams.append('github-installed', 'true');
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
const target = new URL(`${sdk.forProject.client.config.endpoint}/vcs/github/authorize`);
target.searchParams.set('projectId', $page.params.project);
target.searchParams.set('success', redirect.toString());
target.searchParams.set('failure', redirect.toString());
@@ -10,7 +10,7 @@
function connectGitHub() {
const redirect = new URL($page.url);
redirect.searchParams.append('alert', 'installation-created');
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
const target = new URL(`${sdk.forProject.client.config.endpoint}/vcs/github/authorize`);
target.searchParams.set('projectId', $page.params.project);
target.searchParams.set('success', redirect.toString());
target.searchParams.set('failure', redirect.toString());
@@ -61,7 +61,7 @@
function configureGitHub() {
const redirect = new URL($page.url);
redirect.searchParams.append('alert', 'installation-updated');
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
const target = new URL(`${sdk.forProject.client.config.endpoint}/vcs/github/authorize`);
target.searchParams.set('projectId', $page.params.project);
target.searchParams.set('success', redirect.toString());
target.searchParams.set('failure', redirect.toString());