diff options
| -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; { |
