Skip to content

Commit 63f711b

Browse files
committed
fix(import): use designated api route
1 parent 802a774 commit 63f711b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

clients/web/src/connectors/items/mutation-import.state.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,14 @@ function* setupImport() {
7878
throw new Error(errorMessage)
7979
}
8080

81-
const uploadResponse = yield fetch(`/api/import?preSignedUrl=${encodeURIComponent(url)}`, {
82-
method: 'PUT',
83-
headers: { 'Content-Type': 'application/zip' },
84-
body: file
85-
})
81+
const uploadResponse = yield fetch(
82+
`/web-client-api/import?preSignedUrl=${encodeURIComponent(url)}`,
83+
{
84+
method: 'PUT',
85+
headers: { 'Content-Type': 'application/zip' },
86+
body: file
87+
}
88+
)
8689

8790
if (!uploadResponse.ok) throw new Error(`${response.status}: ${response.statusText}`)
8891

0 commit comments

Comments
 (0)