Add the redfish static files to the build
...And delete the old webserver static files from the repo.
Move $metadata to a static file, as that's really where it belongs.
Change-Id: I2caeee7cd779b7c07cfc10cd693459105656671f
diff --git a/include/webassets.hpp b/include/webassets.hpp
index 7845d71..3afa61f 100644
--- a/include/webassets.hpp
+++ b/include/webassets.hpp
@@ -78,6 +78,14 @@
auto content_type_it = content_types.find(webpath.extension().c_str());
if (content_type_it != content_types.end()) {
content_type = content_type_it->second;
+ } else {
+ if (webpath.string() == "$metadata"){
+ content_type_it = content_types.find(".xml");
+ // should always be true
+ if (content_type_it != content_types.end()) {
+ content_type = content_type_it->second;
+ }
+ }
}
app.route_dynamic(std::string(webpath.string()))(
[is_gzip, absolute_path_str, content_type](const crow::request& req,