mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-16 23:02:00 +00:00
Fix install script: strip v prefix from version for archive name
This commit is contained in:
parent
8002158a45
commit
1d564b738d
16 changed files with 552 additions and 26 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue