Merge pull request #713 from BCNelson/fix/685-drive-scoped-external-mounts

This commit is contained in:
Dionisio Pozo
2026-09-07 21:38:49 +02:00
committed by GitHub
8 changed files with 233 additions and 21 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',