summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/webassets.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/webassets.hpp b/include/webassets.hpp
index fb5b66c..6384f3a 100644
--- a/include/webassets.hpp
+++ b/include/webassets.hpp
@@ -77,6 +77,8 @@ void request_routes(Crow<Middlewares...>& app) {
if (boost::starts_with(webpath.filename().string(), "index.")) {
webpath = webpath.parent_path();
if (webpath.string().size() == 0 || webpath.string().back() != '/') {
+ // insert the non-directory version of this path
+ routes.insert(webpath);
webpath += "/";
}
}
OpenPOWER on IntegriCloud