summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-24 15:04:00 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-16 01:20:38 +0100
commit55b210158152cb631a57157728a61a086e95732f (patch)
treea267091745a5a9bb5de90d1107b98d427590dbbb
parentddfc4947087a7a3112b07d4856fe583eb69346f3 (diff)
Add /playlists URL.
-rw-r--r--src/lib/http_server.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/http_server.cc b/src/lib/http_server.cc
index 4d1823bc4..c6dcab953 100644
--- a/src/lib/http_server.cc
+++ b/src/lib/http_server.cc
@@ -103,6 +103,11 @@ HTTPServer::get(string const& url)
auto page = dcp::file_to_string(resources_path() / "web" / "index.html");
boost::algorithm::replace_all(page, "TITLE", variant::dcpomatic_player());
return Response(200, page);
+ } else if (url == "/playlists") {
+ auto page = dcp::file_to_string(resources_path() / "web" / "playlists.html");
+ boost::algorithm::replace_all(page, "TITLE", variant::dcpomatic_player());
+ boost::algorithm::replace_all(page, "SIDEBAR", dcp::file_to_string(resources_path() / "web" / "sidebar.html"));
+ return Response(200, page);
} else if (url == "/api/v1/status") {
nlohmann::json json;
{