Rename appwriteClient to just appwrite

This commit is contained in:
Maciej Pędzich 2023-05-25 17:10:39 +02:00
parent f11bdcf22b
commit a3139f1f61

View File

@ -1,4 +1,4 @@
import { Client } from 'appwrite';
import { Account, Client, Databases } from 'appwrite';
const appwriteClient = new Client();
@ -6,4 +6,5 @@ appwriteClient
.setEndpoint(import.meta.env.VITE_APPWRITE_ENDPOINT)
.setProject(import.meta.env.VITE_APPWRITE_PROJECT_ID);
export { appwriteClient };
export const account = new Account(appwriteClient);
export const databases = new Databases(appwriteClient);