Skip to content

Commit

Permalink
Merge pull request #85 from ncb000gt/master
Browse files Browse the repository at this point in the history
Fixes GH-69. Any api with `/doc` was failing.
  • Loading branch information
Will Kennedy committed Sep 15, 2014
2 parents 0ca0eac + 0e70b59 commit b2bdeb3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ ApiListing getDocumentation(HttpServletRequest request) {
HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);
//trim the operation request mapping from the desired value
handlerMappingPath = handlerMappingPath
.substring(handlerMappingPath.lastIndexOf("/doc") + 4, handlerMappingPath.length());
.substring(handlerMappingPath.indexOf("/doc/") + 4, handlerMappingPath.length());

Map<String, ApiListing> docs = getDocs(request);
if (docs == null) {
Expand Down

0 comments on commit b2bdeb3

Please sign in to comment.