Skip to content

Commit

Permalink
fix: service base route
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 18, 2023
1 parent 598b07b commit 739b57e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codeforlife/settings/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# The base url of the current service.
# The root service does not need its name included in the base url.
SERVICE_BASE_URL = f"{SERVICE_PROTOCOL}://{SERVICE_DOMAIN}:{SERVICE_PORT}"
SERVICE_BASE_ROUTE = "" if SERVICE_IS_ROOT else f"{SERVICE_NAME}/"
if not SERVICE_IS_ROOT:
SERVICE_BASE_URL += f"/{SERVICE_NAME}"

Expand Down

0 comments on commit 739b57e

Please sign in to comment.