fix(mounts): scope external mounts to drives

This commit is contained in:
Bradley Nelson
2026-09-07 00:28:23 -06:00
parent 3dd4167578
commit 39a5ef4fad
7 changed files with 205 additions and 15 deletions
+2 -1
View File
@@ -793,6 +793,7 @@ export interface ExternalMount {
export interface CreateExternalMountInput {
name: string;
host_path: string;
drive_id: string;
kind?: string;
read_only?: boolean;
}
@@ -804,7 +805,7 @@ export function listExternalMounts(): Promise<ExternalMount[]> {
});
}
/** POST /api/admin/external-mounts — create a mount in the admin's drive. */
/** POST /api/admin/external-mounts — create a mount in the selected drive. */
export async function createExternalMount(input: CreateExternalMountInput): Promise<ExternalMount> {
const res = await apiFetch('/api/admin/external-mounts', {
method: 'POST',