summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-11 12:14:43 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-11 12:14:43 +0100
commit41ce6400330731015c7d60755a576eec29245481 (patch)
treecbe836219021556c3c09e29511955b8cb2f76f1c
parent529d83b19e502b2d2c951954112e4faf00101452 (diff)
rest: update og_uri_handle with new folder commands
Add folder/add and folder/delete, otherwise logging shows "unknown"
-rw-r--r--src/rest.c2
-rw-r--r--src/rest.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/rest.c b/src/rest.c
index 75a4782..5bafb4c 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -6887,6 +6887,8 @@ struct {
[OG_URI_TASK_ADD] = { "task/add", },
[OG_URI_SERVER] = { "server", },
[OG_URI_STATS] = { "stats", },
+ [OG_URI_FOLDER_ADD] = { "folder/add", },
+ [OG_URI_FOLDER_DELETE] = { "folder/delete", },
};
static const char *og_uri(enum og_rest_uri uri)
diff --git a/src/rest.h b/src/rest.h
index c2ebd69..faa380f 100644
--- a/src/rest.h
+++ b/src/rest.h
@@ -138,6 +138,8 @@ enum og_rest_uri {
OG_URI_TASK_ADD,
OG_URI_SERVER,
OG_URI_STATS,
+ OG_URI_FOLDER_ADD,
+ OG_URI_FOLDER_DELETE,
OG_URI_MAX
};