diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-12-05 13:33:58 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-12-10 16:33:49 +0100 |
commit | 6a63218f85d80919c8bab87141f9f4c9c3acdfdf (patch) | |
tree | b0626321308c88a4b024315fcd1e7e99a139b8b6 /src/rest.h | |
parent | e3188191d9da0e49dd156ea70f59b92776216e8c (diff) |
rest: add POST oglive/default
Remove 'is_default' column from 'lives' database table and add
column 'priority' of type INT. This new value can store a priority
value but the actual design only stores 1 or 0.
Update GET oglive/list to use the new 'priority' database value.
Add POST oglive/default.
Set the database column 'priority' to 1 if the new default
exists in the database. Set the others to priority 0.
Modify legacy ogliveinfo.json if the new default coresponds to a
live not found in the database. Edit the field 'default' of the
file's json.
Diffstat (limited to 'src/rest.h')
-rw-r--r-- | src/rest.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -145,6 +145,7 @@ enum og_rest_uri { OG_URI_OGLIVE_ADD, OG_URI_OGLIVE_DELETE, OG_URI_OGLIVE_SET, + OG_URI_OGLIVE_DEFAULT, OG_URI_CENTER_ADD, OG_URI_CENTER_UPDATE, OG_URI_CENTER_DELETE, |