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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user