From 9b44482f7c255c46e295076968e931841748dee8 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 17 Sep 2019 01:55:29 +0200 Subject: [PATCH] add: 404 handler for angular --- drogon | 2 +- main.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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);