Skip to content

Commit

Permalink
Add ConceptService.js deprecateConcept()
Browse files Browse the repository at this point in the history
  • Loading branch information
jglass-st committed Dec 19, 2024
1 parent 09fc8fb commit a091edc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/js/api/ConceptService.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ export default {
}
},

async deprecateConcept(conceptId, deprecatedToId) {
try {
const { data } = await apiClient.put(`/${conceptId}/deprecate`, {
to: deprecatedToId,
});
return [null, data];
} catch (error) {
return [error, null];
}
},

async searchConcepts(searchTerm, perPage = 10) {
try {
const { data } = await apiClient.get('/search', {
Expand Down

0 comments on commit a091edc

Please sign in to comment.