import { Hono } from "hono";
import { Users, Account } from 'node-appwrite';
const app = new Hono();
const client = new Client()
.setEndpoint("") // I want to use APPWRITE_ENDPOINT here
.setProject("") // And APPWRITE_PROJECT_ID here
.setKey(""); // And APPWRITE_API_KEY here
app.get("/users", (c) => {
const users = new Users(client);
....
});
app.get("/create", (c) => {
const account = new Account(client);
account.create();
.....
});
export default app;
import { Hono } from "hono";
import { Users, Account } from 'node-appwrite';
const app = new Hono();
const client = new Client()
.setEndpoint("") // I want to use APPWRITE_ENDPOINT here
.setProject("") // And APPWRITE_PROJECT_ID here
.setKey(""); // And APPWRITE_API_KEY here
app.get("/users", (c) => {
const users = new Users(client);
....
});
app.get("/create", (c) => {
const account = new Account(client);
account.create();
.....
});
export default app;