Skip to content

Commit

Permalink
Merge pull request #827 from SanDiegoCountySheriff/bug/cpra-endpoint-…
Browse files Browse the repository at this point in the history
…version

fix: update endpoint version
  • Loading branch information
jacobkellas authored Apr 22, 2024
2 parents 2e5ff91 + d481a6c commit 38a28af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UI/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ export default new Vuex.Store({

return axios
.post(
`${state.apiConfig.apiBaseUrl}submission/v${state.version}/GenerateCpraReport?${queryString}`,
`${state.apiConfig.apiBaseUrl}submission/v1/GenerateCpraReport?${queryString}`,
reportParameters.officerName,
{
headers: {
Expand Down Expand Up @@ -921,7 +921,7 @@ export default new Vuex.Store({
downloadCpraReport({ state }, fileName) {
return axios
.get(
`${state.apiConfig.apiBaseUrl}submission/v${state.version}/DownloadCpraReport?FileName=${fileName}`,
`${state.apiConfig.apiBaseUrl}submission/v1/DownloadCpraReport?FileName=${fileName}`,
{
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -952,7 +952,7 @@ export default new Vuex.Store({
getHistoricalCpraReports({ state, commit }) {
return axios
.get(
`${state.apiConfig.apiBaseUrl}submission/v${state.version}/GetHistoricalCpraReports`,
`${state.apiConfig.apiBaseUrl}submission/v1/GetHistoricalCpraReports`,
{
headers: {
'Ocp-Apim-Subscription-Key': state.apiConfig.apiSubscription,
Expand Down

0 comments on commit 38a28af

Please sign in to comment.