1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-09-23 20:36:43 +00:00

implement wallboard view

resolves #51
This commit is contained in:
Oliver Giles
2020-10-09 13:06:03 +13:00
parent 746ab24676
commit 1ea9713536
6 changed files with 89 additions and 16 deletions

View File

@@ -122,7 +122,7 @@ inline bool beginsWith(std::string haystack, const char* needle) {
bool Resources::handleRequest(std::string path, const char** start, const char** end, const char** content_type) {
// need to keep the list of "application links" synchronised with the angular
// application. We cannot return a 404 for any of these
auto it = beginsWith(path,"/jobs")
auto it = beginsWith(path,"/jobs") || path == "/wallboard"
? resources.find("/")
: resources.find(path);