From 2d83df8b32bff7f0028923bb5b64dc0b55f20d03 Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Tue, 20 Dec 2022 00:21:54 +0000 Subject: Nola rename: The Big Move, Refs T77 --- lib/nola_web/templates/page/api.html.eex | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/nola_web/templates/page/api.html.eex (limited to 'lib/nola_web/templates/page/api.html.eex') diff --git a/lib/nola_web/templates/page/api.html.eex b/lib/nola_web/templates/page/api.html.eex new file mode 100644 index 0000000..03dfa6b --- /dev/null +++ b/lib/nola_web/templates/page/api.html.eex @@ -0,0 +1,35 @@ +

sys.115ans.net/api

+ +

Icecast Status

+ +

GET /api/icecast.json

+ +

+ Content-Type: application/json +

+ +

+{
+  "np": String,
+  "genre": null | String,
+  "live": false | true
+}
+
+ +

GET /api/icecast.sse

+

+ Content-Type: text/event-stream +

+ +

+ Stream of: +

+ + +

+ On client connection, the server sends the latest icecast status known. +

+ -- cgit v1.2.3