minor fix to DocsGenertor class

This commit is contained in:
Massimiliano Assante 2022-09-13 14:24:25 +02:00
parent e0a3e9f516
commit ea37bcb93c
1 changed files with 8 additions and 3 deletions

View File

@ -27,9 +27,14 @@ public class DocsGenerator {
logger.debug("pathInfo {}", pathInfo);
try {
if (pathInfo.endsWith("/api-docs")) {
pathInfo += "/index.html";
}
if (pathInfo.endsWith("/api-docs")) {
pathInfo += "index.html";
}
if (pathInfo.endsWith("/api-docs/")) {
pathInfo += "index.html";
}
logger.info("going to {}", pathInfo);