1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-10-17 08:40:54 +00:00

webui may be modified with custom style.css

This commit is contained in:
Oliver Giles
2017-12-29 11:14:10 +02:00
parent 6919a74d0a
commit 93b428529e
6 changed files with 45 additions and 16 deletions

View File

@@ -210,6 +210,10 @@ public:
} else {
c->set_status(websocketpp::http::status_code::not_found);
}
} else if(resource.compare("/custom/style.css") == 0) {
c->set_status(websocketpp::http::status_code::ok);
c->append_header("Content-Transfer-Encoding", "binary");
c->set_body(laminar.getCustomCss());
} else if(resources.handleRequest(resource, &start, &end, &content_type)) {
c->set_status(websocketpp::http::status_code::ok);
c->append_header("Content-Type", content_type);