Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mav-Ivan committed Sep 26, 2023
1 parent 7d0ac09 commit 399e082
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/constants/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const URLs = {
resourcesCategories: {
get: '/resources-categories',
getNames: '/resources-categories/names'
},
}
},
messages: {
get: '/messages',
Expand Down
11 changes: 5 additions & 6 deletions src/services/resource-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ export const ResourceService = {
await axiosClient.delete(
createUrlPath(URLs.resources.questions.delete, id)
),
getResourcesCategories: (
params?: GetResourcesParams
): Promise<AxiosResponse<ItemsWithCount<Categories>>> => {
return axiosClient.get(URLs.resources.resourcesCategories.get, { params })
},
getResourcesCategories: (
params?: GetResourcesParams
): Promise<AxiosResponse<ItemsWithCount<Categories>>> => {
return axiosClient.get(URLs.resources.resourcesCategories.get, { params })
},
getResourcesCategoriesNames: (): Promise<AxiosResponse<string[]>> =>
axiosClient.get(URLs.resources.resourcesCategories.getNames)

}

0 comments on commit 399e082

Please sign in to comment.