diff --git a/drogon b/drogon index 195bc52..543d1a8 160000 --- a/drogon +++ b/drogon @@ -1 +1 @@ -Subproject commit 195bc5299e73a5f93c65cd336c49a9a013b934bd +Subproject commit 543d1a8c8062b3873ef89c64ffd7394c6dd7c7e8 diff --git a/main.cc b/main.cc index 511ee4d..8509816 100644 --- a/main.cc +++ b/main.cc @@ -50,6 +50,7 @@ main() drogon::app().loadConfigFile("config.json"); drogon::app().registerPostHandlingAdvice(add_cors_headers); + drogon::app().instance().setCustom404Page(drogon::HttpResponse::newFileResponse("./index.html", "", drogon::CT_TEXT_HTML)); //drogon::app().getLoop()->runEvery(1, &test);