mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
feat: docker usage examples
This commit is contained in:
@@ -23,9 +23,18 @@ export const driverController = new Hono()
|
||||
Err: "",
|
||||
});
|
||||
})
|
||||
.post("/VolumeDriver.Mount", (c) => {
|
||||
.post("/VolumeDriver.Mount", async (c) => {
|
||||
const body = await c.req.json();
|
||||
|
||||
if (!body.Name) {
|
||||
return c.json({ Err: "Volume name is required" }, 400);
|
||||
}
|
||||
|
||||
const volumeRoot = config.volumeRootHost;
|
||||
const mountpoint = `${volumeRoot}/${body.Name}/_data`;
|
||||
|
||||
return c.json({
|
||||
Mountpoint: `/mnt/something`,
|
||||
Mountpoint: mountpoint,
|
||||
});
|
||||
})
|
||||
.post("/VolumeDriver.Unmount", (c) => {
|
||||
|
||||
Reference in New Issue
Block a user