Skip to content

Commit

Permalink
fix: updated urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinrefvol committed Feb 28, 2025
1 parent 0526514 commit e982192
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/custom/getAnalogueModelImageById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getAnalogueModelImage = async (
const base = OpenAPI.BASE;

const response = await axios.get(
`/api/analogue-models/${analogueModelId}/images/${imageId}`,
`/api/v1/analogue-models/${analogueModelId}/images/${imageId}`,
{
headers: { Authorization: `Bearer ${token}` },
responseType: 'blob', // response type of blob to handle images
Expand Down
2 changes: 1 addition & 1 deletion src/api/custom/getImageById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const getVariogramImage = async (imageId: string): Promise<string> => {
const token = OpenAPI.TOKEN; // replace with your bearer token
const base = OpenAPI.BASE;

const response = await axios.get(`/api/images/variogram/${imageId}`, {
const response = await axios.get(`/api/v1/images/variogram/${imageId}`, {
headers: { Authorization: `Bearer ${token}` },
responseType: 'blob', // response type of blob to handle images
baseURL: base,
Expand Down
2 changes: 1 addition & 1 deletion src/api/custom/postIniFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const postIniFile = async (
const base = OpenAPI.BASE;

const response = await axios.post(
`/api/uploads/models/${modelId}/ini-file`,
`/api/v1/uploads/models/${modelId}/ini-file`,
formData,
{
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useFetchAnaloguesExcel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getFetchAnaloguesExcelAxios = async (
}

const response = await axios.get(
'/api/downloads/analogue-models-excel' + params,
'/api/v1/downloads/analogue-models-excel' + params,
{
headers: { Authorization: `Bearer ${token}` },
responseType: 'blob', // response type of blob to handle images
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useFetchFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getFetchIniFileAxios = async (
const base = OpenAPI.BASE;

const response = await axios.get(
`/api/downloads/${analogueModel.analogueModelId}/ini`,
`/api/v1/downloads/${analogueModel.analogueModelId}/ini`,
{
headers: { Authorization: `Bearer ${token}` },
responseType: 'blob', // response type of blob to handle images
Expand Down

0 comments on commit e982192

Please sign in to comment.