From 403e7c323b3069c8c70088ded30de3096a216e3f Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 23 Sep 2020 11:01:22 +0200 Subject: #1004 Add GET /images This commit adds GET /images to the ogServer REST API. This call returns information of all the images in ogServer. Example response: { "images": [ { "filename": "ubuntu.img", "datasize": 2150400000, "size": 613476223, "modified": "Wed Sep 23 10:37:36 2020", "permissions": "744" }, { "filename": "test.img", "datasize": 2150400000, "size": 613236475, "modified": "Tue Sep 29 08:57:47 2020", "permissions": "744" } ], "disk": { "total": 52573995008, "free": 39624544256 } } --- src/cfg.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cfg.h') diff --git a/src/cfg.h b/src/cfg.h index c88a406..0d45bbd 100644 --- a/src/cfg.h +++ b/src/cfg.h @@ -17,6 +17,9 @@ struct og_server_cfg { struct { const char *interface; } wol; + struct { + const char *dir; + } repo; json_t *json; }; -- cgit v1.2.3-18-g5258