minor fix to DocsGenertor class
This commit is contained in:
parent
e0a3e9f516
commit
ea37bcb93c
|
@ -28,9 +28,14 @@ public class DocsGenerator {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (pathInfo.endsWith("/api-docs")) {
|
if (pathInfo.endsWith("/api-docs")) {
|
||||||
pathInfo += "/index.html";
|
pathInfo += "index.html";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pathInfo.endsWith("/api-docs/")) {
|
||||||
|
pathInfo += "index.html";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
logger.info("going to {}", pathInfo);
|
logger.info("going to {}", pathInfo);
|
||||||
|
|
||||||
String realPath = req.getServletContext().getRealPath(pathInfo);
|
String realPath = req.getServletContext().getRealPath(pathInfo);
|
||||||
|
|
Loading…
Reference in New Issue