Skip to content

Commit

Permalink
Add importer additional actions (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 authored Jul 9, 2024
1 parent 8945d8b commit a927f45
Show file tree
Hide file tree
Showing 2 changed files with 230 additions and 50 deletions.
5 changes: 5 additions & 0 deletions client/src/app/api/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ export const updateImporter = (
.put<Importer>(`${IMPORTERS}/${id}`, body)
.then((response) => response.data);

export const runImporter = (id: number | string) =>
axios
.post<Importer>(`${IMPORTERS}/${id}/force`)
.then((response) => response.data);

export const deleteImporter = (id: number | string) =>
axios
.delete<Importer>(`${IMPORTERS}/${id}`)
Expand Down
Loading

0 comments on commit a927f45

Please sign in to comment.