Skip to content

Commit

Permalink
fix for new api url and paths
Browse files Browse the repository at this point in the history
  • Loading branch information
adamscarberry committed Jan 25, 2024
1 parent 7ecea4c commit d54fe93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ VITE_APP_DEBUG=0
##########################
# APIs Used By Application
##########################
# VITE_WATER_API_URL=http://192.168.1.134
VITE_WATER_API_URL=http://localhost:8080/cda/reporting
# VITE_WATER_API_URL=https://ml-dev.sec.usace.army.mil/nsi-ml/cwms
VITE_WATER_API_URL=https://a2w-api.rsgis.dev/cwms
# VITE_WATER_API_URL=https://a2w-api.rsgis.dev/cwms
VITE_RADAR_API_URL=https://cwms-data.usace.army.mil/cwms-data
VITE_MOCK_API_URL=http://localhost
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
REACT_APP_AUTH_HOST: https://develop-auth.corps.cloud/auth
REACT_APP_AUTH_REDIRECT_URL: https://develop-water.corps.cloud
# REACT_APP_WATER_API_URL: https://ml-dev.sec.usace.army.mil/nsi-ml/cwms
REACT_APP_WATER_API_URL: https://a2w-api.rsgis.dev/cwms
REACT_APP_WATER_API_URL: https://a2w-api.rsgis.dev/cda/reporting
REACT_APP_ISDEVELOPMENT: true
runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion src/app-bundles/provider-timeseries-values-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default createRestBundle({
const isoBefore = endDate ? endDate?.toISOString() : null;
const provider = store['selectProviderByRoute']();

let tsUurl = apiUrl.replace('/cwms', '/cda');
let tsUurl = apiUrl.replace('/reporting', '/proxy');
const tsid = timeseriesId.replace('%', '%25').replace('&', '%26');
const url = `${tsUurl}/providers/${provider?.slug}/timeseries?name=${tsid}&begin=${isoAfter}&end=${isoBefore}&page-size=-1`;
//const url = `${apiUrl}/providers/${provider?.slug}/timeseries?name=${tsid}&begin=${isoAfter}&end=${isoBefore}`;
Expand Down

0 comments on commit d54fe93

Please sign in to comment.