fix: not found page file path fixed
This commit is contained in:
parent
00efbe6d93
commit
47910c60a6
1 changed files with 1 additions and 1 deletions
2
main.cc
2
main.cc
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue