feat(repositories): rclone backends

This commit is contained in:
Nicolas Meienberger
2025-11-11 20:42:44 +01:00
parent a1cc89c66e
commit 8f9873148a
6 changed files with 143 additions and 1 deletions

View File

@@ -305,3 +305,29 @@ export const doctorRepositoryDto = describeRoute({
},
},
});
/**
* List rclone available remotes
*/
const rcloneRemoteSchema = type({
name: "string",
type: "string",
});
const listRcloneRemotesResponse = rcloneRemoteSchema.array();
export const listRcloneRemotesDto = describeRoute({
description: "List all configured rclone remotes on the host system",
tags: ["Rclone"],
operationId: "listRcloneRemotes",
responses: {
200: {
description: "List of rclone remotes",
content: {
"application/json": {
schema: resolver(listRcloneRemotesResponse),
},
},
},
},
});