diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-01-24 15:04:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-03 21:37:04 +0100 |
| commit | 671e0a492f0c2ebd9439a1a6da01667308a095f3 (patch) | |
| tree | a417dcc9f24038c0a633f695832bd40f54c9c645 /src/lib/http_server.cc | |
| parent | 79cc9b66c779aa4e0c8a2485653da316bafd8e97 (diff) | |
Add /playlists URL.
Diffstat (limited to 'src/lib/http_server.cc')
| -rw-r--r-- | src/lib/http_server.cc | 5 |
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; { |
