Fix install script: strip v prefix from version for archive name

This commit is contained in:
Harivansh Rathi 2026-04-01 21:06:40 -04:00
parent 8002158a45
commit 1d564b738d
16 changed files with 552 additions and 26 deletions

View file

@ -1,5 +1,16 @@
const API_URL = process.env.NEXT_PUBLIC_BETTERNAS_API_URL || "";
export interface NasNode {
id: string;
machineId: string;
displayName: string;
agentVersion: string;
status: "online" | "offline" | "degraded";
lastSeenAt: string;
directAddress: string | null;
relayAddress: string | null;
}
export interface StorageExport {
id: string;
nasNodeId: string;
@ -146,6 +157,10 @@ export async function getMe(): Promise<User> {
return apiFetch<User>("/api/v1/auth/me");
}
export async function listNodes(): Promise<NasNode[]> {
return apiFetch<NasNode[]>("/api/v1/nodes");
}
export async function listExports(): Promise<StorageExport[]> {
return apiFetch<StorageExport[]>("/api/v1/exports");
}