From 3b3fc329993e110a2da89bec5a1cdbf064092fd1 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 19 Dec 2023 19:02:31 +0100 Subject: rest: missing POST /image/update in syslog Update it so it shows in syslog, instead of unknown: Dec 19 18:31:18 ogserver ogserver[1133]: 127.0.0.1:36538 POST /unknown clients=150.128.34.25 --- src/rest.c | 1 + src/rest.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/rest.c b/src/rest.c index d3239a3..658a398 100644 --- a/src/rest.c +++ b/src/rest.c @@ -6584,6 +6584,7 @@ struct { [OG_URI_REPO_DELETE] = { "repository/delete", }, [OG_URI_IMAGES] = { "images", }, [OG_URI_IMAGE_CREATE] = { "image/create" }, + [OG_URI_IMAGE_UPDATE] = { "image/update" }, [OG_URI_IMAGE_RESTORE] = { "image/restore", }, [OG_URI_IMAGE_DELETE] = { "image/delete", }, [OG_URI_PART_SETUP] = { "setup", }, diff --git a/src/rest.h b/src/rest.h index ba6d3c2..c2ebd69 100644 --- a/src/rest.h +++ b/src/rest.h @@ -113,6 +113,7 @@ enum og_rest_uri { OG_URI_REPO_DELETE, OG_URI_IMAGES, OG_URI_IMAGE_CREATE, + OG_URI_IMAGE_UPDATE, OG_URI_IMAGE_RESTORE, OG_URI_IMAGE_DELETE, OG_URI_PART_SETUP, -- cgit v1.2.3-18-g5258