Skip to content

Commit

Permalink
Allow for swagger host specification.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Apr 10, 2018
1 parent 9dd9a8c commit 35f9ec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public class SwaggerService extends BaseService implements Supplier<RoutingHan
protected String redocPath;

@Inject
@Named("application.host")
@Named("swagger.host")
protected String host;

@Inject
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ assets {
swagger {
# the path that has an index.html template and theme css files
resourcePrefix="io/sinistral/proteus/swagger"

host=${application.host}
# swagger version
swagger="2.0"

info {
# swagger info title
title = ${application.name}
Expand Down

0 comments on commit 35f9ec7

Please sign in to comment.