fix: not found page file path fixed

This commit is contained in:
Tobias Reisinger 2019-09-17 13:26:51 +02:00
parent 00efbe6d93
commit 47910c60a6

View file

@ -50,7 +50,7 @@ main()
drogon::app().loadConfigFile("config.json"); drogon::app().loadConfigFile("config.json");
drogon::app().registerPostHandlingAdvice(add_cors_headers); drogon::app().registerPostHandlingAdvice(add_cors_headers);
drogon::app().instance().setCustom404Page(drogon::HttpResponse::newFileResponse("./index.html", "", drogon::CT_TEXT_HTML)); drogon::app().instance().setCustom404Page(drogon::HttpResponse::newFileResponse("./static/index.html", "", drogon::CT_TEXT_HTML));
//drogon::app().getLoop()->runEvery(1, &test); //drogon::app().getLoop()->runEvery(1, &test);