Moved OPDS templates under static/templates

This commit is contained in:
Veloman Yunkan 2021-06-08 16:18:28 +04:00
parent dd60235010
commit 78083f1f4a
7 changed files with 8 additions and 8 deletions

View File

@ -98,7 +98,7 @@ string OPDSDumper::dumpOPDSFeed(const std::vector<std::string>& bookIds, const s
{"books", bookData }
};
return render_template(RESOURCE::catalog_entries_xml, template_data);
return render_template(RESOURCE::templates::catalog_entries_xml, template_data);
}
string OPDSDumper::dumpOPDSFeedV2(const std::vector<std::string>& bookIds, const std::string& query) const
@ -117,7 +117,7 @@ string OPDSDumper::dumpOPDSFeedV2(const std::vector<std::string>& bookIds, const
{"books", bookData }
};
return render_template(RESOURCE::catalog_v2_entries_xml, template_data);
return render_template(RESOURCE::templates::catalog_v2_entries_xml, template_data);
}
std::string OPDSDumper::categoriesOPDSFeed(const std::vector<std::string>& categories) const
@ -135,7 +135,7 @@ std::string OPDSDumper::categoriesOPDSFeed(const std::vector<std::string>& categ
}
return render_template(
RESOURCE::catalog_v2_categories_xml,
RESOURCE::templates::catalog_v2_categories_xml,
kainjow::mustache::object{
{"date", now},
{"endpoint_root", rootLocation + "/catalog/v2"},

View File

@ -68,7 +68,7 @@ std::unique_ptr<Response> InternalServer::handle_catalog_v2_root(const RequestCo
{
return ContentResponse::build(
*this,
RESOURCE::catalog_v2_root_xml,
RESOURCE::templates::catalog_v2_root_xml,
kainjow::mustache::object{
{"date", gen_date_str()},
{"endpoint_root", m_root + "/catalog/v2"},

View File

@ -36,9 +36,9 @@ templates/head_taskbar.html
templates/taskbar_part.html
templates/external_blocker_part.html
templates/captured_external.html
templates/catalog_entries.xml
templates/catalog_v2_root.xml
templates/catalog_v2_entries.xml
templates/catalog_v2_categories.xml
opensearchdescription.xml
catalog_entries.xml
catalog_v2_root.xml
catalog_v2_entries.xml
catalog_v2_categories.xml
catalog_v2_searchdescription.xml