mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-05 15:30:14 +01:00
19 lines
446 B
TypeScript
19 lines
446 B
TypeScript
import sdk from "node-appwrite";
|
|
const aw = () => {
|
|
let client = new sdk.Client();
|
|
|
|
client
|
|
.setEndpoint(process.env["APPWRITE_HOST"])
|
|
.setProject("pingvin-share")
|
|
.setKey(process.env["APPWRITE_API_KEY"])
|
|
.setSelfSigned();
|
|
|
|
const database = new sdk.Database(client);
|
|
const storage = new sdk.Database(client);
|
|
const functions = new sdk.Functions(client);
|
|
|
|
return { database, storage, functions };
|
|
};
|
|
|
|
export default aw;
|