Skip to content

Commit

Permalink
Merge pull request #14250 from PierreBesson/api-docs-context-path
Browse files Browse the repository at this point in the history
Correctly set the spring context-path for api-docs
  • Loading branch information
pascalgrimaud authored Mar 9, 2021
2 parents e572a4e + 809289c commit ec7fc24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ eureka:
git-version: ${git.commit.id.describe:}
git-commit: ${git.commit.id.abbrev:}
git-branch: ${git.branch:}
context-path: ${server.servlet.context-path:}
<%_ } _%>
<%_ if (applicationType === 'gateway') { _%>

Expand Down Expand Up @@ -330,7 +331,8 @@ jhipster:
mail:
from: <%= baseName %>@localhost
api-docs:
default-include-pattern: /api/.*
default-include-pattern: ${server.servlet.context-path:}/api/.*
management-include-pattern: ${server.servlet.context-path:}/management/.*
title: <%= baseName %> API
description: <%= baseName %> API documentation
version: 0.0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ spring:
- git-version=${git.commit.id.describe:}
- git-commit=${git.commit.id.abbrev:}
- git-branch=${git.branch:}
- context-path=${server.servlet.context-path:}

host: localhost
port: 8500
<%_ } _%>
Expand Down

0 comments on commit ec7fc24

Please sign in to comment.