1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00
appwrite/public/scripts/services/console.js
2022-08-02 12:21:31 +02:00

29 lines
922 B
JavaScript

(function (window) {
"use strict";
window.ls.container.set('console', function (window) {
var client = new Appwrite.Client();
var endpoint = window.location.origin + '/v1';
client
.setEndpoint(endpoint)
.setProject('console')
.setLocale(APP_ENV.LOCALE)
;
return {
client: client,
account: new Appwrite.Account(client),
avatars: new Appwrite.Avatars(client),
databases: new Appwrite.Databases(client),
functions: new Appwrite.Functions(client),
health: new Appwrite.Health(client),
locale: new Appwrite.Locale(client),
projects: new Appwrite.Projects(client),
storage: new Appwrite.Storage(client),
teams: new Appwrite.Teams(client),
users: new Appwrite.Users(client)
}
}, true);
})(window);