Skip to content

Commit

Permalink
DBC22-1326: using django pod environment variables for route planner
Browse files Browse the repository at this point in the history
DBC22-1326: using django pod environment variables for route planner
  • Loading branch information
bcgov-brwang authored and ray-oxd committed Dec 13, 2023
1 parent 57da488 commit 5ee8b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/apps/shared/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def get_filtered_queryset(self, geo_filter):
# Fetch route from API again to avoid sending too many coordinates from client
# To be removed once we have route saved in backend
response = requests.get(
env("REACT_APP_ROUTE_PLANNER") + "/directions.json",
env("DRIVEBC_ROUTE_PLANNER_API_BASE_URL") + "/directions.json",
params=payload,
headers={
"apiKey": env("REACT_APP_ROUTE_PLANNER_KEY"),
"apiKey": env("DRIVEBC_ROUTE_PLANNER_API_AUTH_KEY"),
}
)

Expand Down

0 comments on commit 5ee8b46

Please sign in to comment.