Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Fix trailing slash on swagger with path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdean-digicatapult committed Jul 21, 2022
1 parent f17d585 commit 90b177f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function createHttpServer() {
}

app.use(
EXTERNAL_PATH_PREFIX ? `${EXTERNAL_PATH_PREFIX}/${API_MAJOR_VERSION}/swagger` : `/${API_MAJOR_VERSION}/swagger`,
EXTERNAL_PATH_PREFIX ? `/${EXTERNAL_PATH_PREFIX}/${API_MAJOR_VERSION}/swagger` : `/${API_MAJOR_VERSION}/swagger`,
swaggerUi.serve,
swaggerUi.setup(null, options)
)
Expand Down
4 changes: 2 additions & 2 deletions helm/dscp-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: dscp-api
appVersion: '4.6.6'
appVersion: '4.6.7'
description: A Helm chart for dscp-api
version: '4.6.6'
version: '4.6.7'
type: application
dependencies:
- name: dscp-node
Expand Down
2 changes: 1 addition & 1 deletion helm/dscp-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ service:
image:
repository: digicatapult/dscp-api
pullPolicy: IfNotPresent
tag: 'v4.6.6'
tag: 'v4.6.7'

dscpNode:
enabled: false
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dscp-api",
"version": "4.6.6",
"version": "4.6.7",
"description": "DSCP API",
"repository": {
"type": "git",
Expand Down

0 comments on commit 90b177f

Please sign in to comment.