summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-24 15:04:00 +0100
committerCarl Hetherington <cth@carlh.net>2026-04-25 12:55:25 +0200
commitaaa45be01e349a830bbd3a245d356c32eaec241d (patch)
tree09216878b72fc45bdc243f4e1da2465ab2691bda
parentb0418a9683642910d85b97878cfb11514e82f7bd (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;
{