Skip to content

Commit

Permalink
Update client/src/api/histories.ts
Browse files Browse the repository at this point in the history
Co-authored-by: David López <[email protected]>
  • Loading branch information
jmchilton and davelopez authored Feb 6, 2024
1 parent b33e763 commit 403a9be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/api/histories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ export const deleteHistories = fetcher.path("/api/histories/batch/delete").metho
export const undeleteHistory = fetcher.path("/api/histories/deleted/{history_id}/undelete").method("post").create();
export const undeleteHistories = fetcher.path("/api/histories/batch/undelete").method("put").create();
export const historiesQuery = fetcher.path("/api/histories/query").method("get").create();

export function getPublishedHistories() {
return historiesFetcher({ view: "details", q: ["published"], qv: ["True"] });
}
export const publishedHistoriesFetcher = fetcher.path("/api/histories/published").method("get").create();

0 comments on commit 403a9be

Please sign in to comment.