summaryrefslogtreecommitdiffstats
path: root/src/rest.h
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-07 11:17:23 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-11 12:29:11 +0100
commit4103945785011eb1a863e81bd4b37dec05fc8cdb (patch)
tree3d75bc2e079b5207f56273eed796f26860abb50e /src/rest.h
parent892a8fa2e5a60f2390c74d6bf0599e942a80983c (diff)
rest: add POST /oglive/add and POST /oglive/delete
Add API to register and delete oglives from the database. POST /oglive/add Register an installed oglive in the database, if the entry already exists update its creation date. Example request payload: {"name": "ogrelive-6.1.0-26"} POST /oglive/delete Remove an installed oglive from the database Example request payload: {"name": "ogrelive-6.1.0-26"}
Diffstat (limited to 'src/rest.h')
-rw-r--r--src/rest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rest.h b/src/rest.h
index be5b17a..f1a1788 100644
--- a/src/rest.h
+++ b/src/rest.h
@@ -142,6 +142,8 @@ enum og_rest_uri {
OG_URI_CACHE_FETCH,
OG_URI_PART_SETUP,
OG_URI_OGLIVE_LIST,
+ OG_URI_OGLIVE_ADD,
+ OG_URI_OGLIVE_DELETE,
OG_URI_OGLIVE_SET,
OG_URI_CENTER_ADD,
OG_URI_CENTER_UPDATE,