feat: update endpoint

This commit is contained in:
Christy Jacob
2023-02-22 12:19:35 +00:00
parent 77ba31859b
commit 4da4cd6509
3 changed files with 12 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
tasks:
- init: npm install && npm run build
command: npm run dev
+1 -1
View File
@@ -49,4 +49,4 @@ const sdkForProject = {
users: new Users(clientProject)
};
export { sdkForConsole, sdkForProject, setProject };
export { sdkForConsole, sdkForProject, setProject, endpoint };
@@ -11,7 +11,7 @@
InputText
} from '$lib/elements/forms';
import { addNotification } from '$lib/stores/notifications';
import { sdkForConsole } from '$lib/stores/sdk';
import { sdkForConsole, endpoint } from '$lib/stores/sdk';
import { Unauthenticated } from '$lib/layout';
import FormList from '$lib/elements/forms/formList.svelte';
import { Dependencies } from '$lib/constants';
@@ -51,7 +51,7 @@
async function invite() {
try {
disabled = true;
const res = await fetch(`${VARS.APPWRITE_ENDPOINT}/account/invite`, {
const res = await fetch(`${endpoint}/account/invite`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'