mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix VCS endpoint
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user