nojs: add an explanation page

This commit is contained in:
Vaxry
2025-04-22 14:16:56 +01:00
parent 0c9a8930e1
commit 88507ee893
4 changed files with 134 additions and 2 deletions

View File

@@ -295,7 +295,12 @@ void CServerHandler::onRequest(const Pistache::Http::Request& req, Pistache::Htt
const auto PATH_RAW = NFsUtils::htmlPath(RESOURCE_PATH);
std::error_code ec;
const auto PATH_ABSOLUTE = std::filesystem::canonical(PATH_RAW, ec);
auto PATH_ABSOLUTE = std::filesystem::canonical(PATH_RAW, ec);
if (ec) {
// bad resource, try .html
PATH_ABSOLUTE = std::filesystem::canonical(PATH_RAW + ".html", ec);
}
if (ec) {
// bad resource