summaryrefslogtreecommitdiff
path: root/htroot/api
diff options
context:
space:
mode:
Diffstat (limited to 'htroot/api')
-rw-r--r--htroot/api/logreports.json17
-rw-r--r--htroot/api/logreports.rss24
2 files changed, 41 insertions, 0 deletions
diff --git a/htroot/api/logreports.json b/htroot/api/logreports.json
new file mode 100644
index 000000000..4b495dada
--- /dev/null
+++ b/htroot/api/logreports.json
@@ -0,0 +1,17 @@
+{
+ #(authorized)#
+ "error": "authorization required",
+ ::
+ #(/authorized)#
+ "reports": [
+ #{reports}#
+ {
+ "filename": "#[filename]#",
+ "title": "#[title]#",
+ "published": "#[published]#",
+ "daily": #(daily)#false::true#(/daily)#,
+ "content": "#[content]#"
+ }#(comma)#::,#(/comma)#
+ #{/reports}#
+ ]
+}
diff --git a/htroot/api/logreports.rss b/htroot/api/logreports.rss
new file mode 100644
index 000000000..8a0d9f2ed
--- /dev/null
+++ b/htroot/api/logreports.rss
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rss version="2.0">
+<channel>
+<title>#[channel_title]#</title>
+<description>#[channel_description]#</description>
+<pubDate>#[channel_pubDate]#</pubDate>
+#(authorized)#
+<item>
+<title>Authorization required</title>
+<description>Administrative authentication is required to read YaCy log reports.</description>
+<guid isPermaLink="false">authorization-required</guid>
+</item>
+::
+#(/authorized)#
+#{reports}#
+<item>
+<title>#[title-rss]#</title>
+<description>#[description-rss]#</description>
+<pubDate>#[pubDate-rss]#</pubDate>
+<guid isPermaLink="false">#[guid-rss]#</guid>
+</item>
+#{/reports}#
+</channel>
+</rss>