mirror of
https://github.com/nicotsx/zerobyte.git
synced 2025-12-10 12:10:51 +01:00
feat: add webdav support
This commit is contained in:
@@ -55,13 +55,17 @@ export const volumeController = new Hono()
|
||||
const res = await volumeService.getVolume(name);
|
||||
|
||||
const response = {
|
||||
...res,
|
||||
volume: {
|
||||
...res.volume,
|
||||
createdAt: res.volume.createdAt.getTime(),
|
||||
updatedAt: res.volume.updatedAt.getTime(),
|
||||
lastHealthCheck: res.volume.lastHealthCheck.getTime(),
|
||||
},
|
||||
statfs: {
|
||||
total: res.statfs.total ?? 0,
|
||||
used: res.statfs.used ?? 0,
|
||||
free: res.statfs.free ?? 0,
|
||||
},
|
||||
} satisfies GetVolumeResponseDto;
|
||||
|
||||
return c.json(response, 200);
|
||||
|
||||
Reference in New Issue
Block a user