Fixed docs path

This commit is contained in:
Luca Frosini 2022-03-31 18:11:20 +02:00
parent 5d3dc89766
commit 100133b21c
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ public class Docs {
String pathInfo = req.getPathInfo(); String pathInfo = req.getPathInfo();
try { try {
if (pathInfo.endsWith("/docs")) {
pathInfo += "/index.html";
}
if (pathInfo.endsWith("/docs/")) { if (pathInfo.endsWith("/docs/")) {
pathInfo += "index.html"; pathInfo += "index.html";
} }