diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/src/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/web/src/main.cpp b/web/src/main.cpp index 248328f..2b4aaba 100644 --- a/web/src/main.cpp +++ b/web/src/main.cpp @@ -1,9 +1,15 @@ #include "crow/app.h" +#include "crow/mustache.h" int main(int argc, char *argv[]) { crow::SimpleApp app; - CROW_ROUTE(app, "/")([]() { return "hi"; }); + CROW_ROUTE(app, "/") + ([]() { + auto page = crow::mustache::load_text("index.html"); + + return page; + }); app.multithreaded().port(18083).run(); return 0; |
