Skip to content

Commit

Permalink
fix api endpoint for file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
klandeck committed Apr 7, 2022
1 parent 0a45805 commit 1ddce04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/pages/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const FileUpload = (): JSX.Element => {
data.append('name', file.file.name)
data.append('file', file.file)
rest
.post('/sources', data, {})
.post('/api/sources', data, {})
.then((): void =>
openSnackbar(Translations.UPLOAD_SUCCESS, 'success')
)
Expand Down

0 comments on commit 1ddce04

Please sign in to comment.