feat: toggle auto remount

This commit is contained in:
Nicolas Meienberger
2025-09-27 11:22:47 +02:00
parent 7154dcdbac
commit 35779b5ce3
7 changed files with 49 additions and 30 deletions

View File

@@ -139,19 +139,15 @@ export const getVolumeDto = describeRoute({
* Update a volume
*/
export const updateVolumeBody = type({
config: volumeConfigSchema,
autoRemount: "boolean?",
config: volumeConfigSchema.optional(),
});
export type UpdateVolumeBody = typeof updateVolumeBody.infer;
export const updateVolumeResponse = type({
message: "string",
volume: type({
name: "string",
path: "string",
type: "string",
createdAt: "number",
updatedAt: "number",
config: volumeConfigSchema,
}),
volume: volumeSchema,
});
export const updateVolumeDto = describeRoute({
@@ -174,6 +170,8 @@ export const updateVolumeDto = describeRoute({
},
});
export type UpdateVolumeResponseDto = typeof updateVolumeResponse.infer;
/**
* Test connection
*/