Fix API routing in admin dashboard, simplify JS/TS client APIs and publish v0.4.0.

This commit is contained in:
Sebastian Jeltsch
2025-05-10 11:05:43 +02:00
parent cf47a9c77a
commit c724c9eaab
11 changed files with 82 additions and 86 deletions

View File

@@ -9,7 +9,7 @@ import { list } from "../src/list.ts";
import { subscribe, subscribeAll } from "../src/subscribe.ts";
async function connect(): Promise<Client> {
const client = new Client("http://localhost:4000");
const client = Client.init("http://localhost:4000");
await client.login("admin@localhost", "secret");
return client;
}