Add a Go HTTP API with Ed25519 auth and invitation onboarding, user-scoped GeoJSON Point management, a Bun-tested @noble/ed25519 TypeScript client, static Vue/Vuetify frontend integration, and a Gitea CI workflow running both Go and Bun test suites. Made-with: Cursor
18 lines
382 B
JavaScript
18 lines
382 B
JavaScript
import { GeoApiClient } from "../libs/geo-api-client/dist/index.js";
|
|
|
|
class BrowserStorage {
|
|
getItem(key) {
|
|
return localStorage.getItem(key);
|
|
}
|
|
setItem(key, value) {
|
|
localStorage.setItem(key, value);
|
|
}
|
|
removeItem(key) {
|
|
localStorage.removeItem(key);
|
|
}
|
|
}
|
|
|
|
export function createApiClient(baseUrl) {
|
|
return new GeoApiClient(baseUrl, new BrowserStorage());
|
|
}
|