feat: some shit
Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 37s

This commit is contained in:
2024-12-19 23:55:07 +01:00
parent a740da1099
commit 540d0549d7
14 changed files with 58 additions and 40 deletions

View File

@ -13,7 +13,7 @@ export class RemoteNodeRegistry implements NodeRegistry {
fetch: typeof fetch = globalThis.fetch.bind(globalThis);
constructor(private url: string) { }
constructor(private url: string, private cache?: AsyncCache<ArrayBuffer>) { }
async fetchUsers() {
const response = await this.fetch(`${this.url}/nodes/users.json`);
@ -24,7 +24,7 @@ export class RemoteNodeRegistry implements NodeRegistry {
}
async fetchUser(userId: `${string}`) {
const response = await this.fetch(`${this.url}/nodes/${userId}.json`);
const response = await this.fetch(`${this.url}/user/${userId}.json`);
if (!response.ok) {
throw new Error(`Failed to load user ${userId}`);
}