feature_23113 #4

Merged
francesco.mangiacrapa merged 58 commits from feature_23113 into master 2022-04-06 09:59:06 +02:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 35f6cd7a06 - Show all commits

View File

@ -23,6 +23,8 @@
<java-json-client disabled="true" />
<javascript-client disabled="true" />
<docs docsDir="${project.build.directory}" docsSubdir="docs" />
<!-- REPLACE THE {YOUR_APPLICATION_NAME} WITH YOUR APPLICATION NAME. E.g.
/gcat, /uri-resolver /> -->
<!-- <swagger basePath="[YOUR_APPLICATION-NAME]" /> -->
</modules>

View File

@ -42,14 +42,14 @@ public class DocsGenerator {
logger.info(DocsGenerator.class.getSimpleName() + " toDoc called");
String pathInfo = req.getPathInfo();
logger.info("pathInfo {}", pathInfo);
logger.debug("pathInfo {}", pathInfo);
try {
if (pathInfo.endsWith("/docs/")) {
pathInfo += "index.html";
}
logger.info("redirecting to {}", pathInfo);
logger.info("going to {}", pathInfo);
String realPath = req.getServletContext().getRealPath(pathInfo);
return new FileInputStream(new File(realPath));