restore /api/v1/badge.svg (#18416)
Costa Tsaousis committed
Aug 26, 2024 at 18:13 UTC
2fb8d6f921e4d8e4214540eee87306236a012c5a
2 files changed
+9
-1
src/web/api/web_api_v1.c
+8
@@ -34,6 +34,14 @@ static struct web_api_command api_commands_v1[] = {
34
.allow_subpaths = 0
35
},
36
#endif
37
+ {
38
+ .api = "badge.svg",
39
+ .hash = 0,
40
+ .acl = HTTP_ACL_BADGES,
41
+ .access = HTTP_ACCESS_ANONYMOUS_DATA,
42
+ .callback = api_v1_badge,
43
+ .allow_subpaths = 0
44
+ },
45
{
46
// exporting API
47
.api = "allmetrics",
src/web/api/web_api_v3.c
+1
-1
@@ -15,7 +15,7 @@ static struct web_api_command api_commands_v3[] = {
15
.callback = api_v2_data,
16
.allow_subpaths = 0
17
},
18
- // badges can be fetched with both dashboard and badge ACL
18
+ // badges
19
{
20
.api = "badge.svg",
21
.hash = 0,