Skip to content

Commit 1c1e107

Browse files
committed
add frontend request for retrieving list of excluded drives
1 parent dd328ac commit 1c1e107

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/requests.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ export async function includeDrive(driveName: string) {
8787
return data;
8888
}
8989

90+
/**
91+
* Fetch the list of excluded drives from the filebrowser.
92+
* @returns The list of excluded drives.
93+
*/
94+
export async function getExcludedDrives() {
95+
return await requestAPI<IDriveInfo[]>('drives/config', 'GET');
96+
}
97+
9098
/**
9199
* Fetch the list of available drives.
92100
* @returns The list of available drives.

0 commit comments

Comments
 (0)