diff --git a/src/constants/request.ts b/src/constants/request.ts index ef71ca2b9..3b234a478 100644 --- a/src/constants/request.ts +++ b/src/constants/request.ts @@ -63,7 +63,7 @@ export const URLs = { resourcesCategories: { get: '/resources-categories', getNames: '/resources-categories/names' - }, + } }, messages: { get: '/messages', diff --git a/src/services/resource-service.ts b/src/services/resource-service.ts index 41a9acffd..2b7f2f97f 100644 --- a/src/services/resource-service.ts +++ b/src/services/resource-service.ts @@ -59,12 +59,11 @@ export const ResourceService = { await axiosClient.delete( createUrlPath(URLs.resources.questions.delete, id) ), - getResourcesCategories: ( - params?: GetResourcesParams - ): Promise>> => { - return axiosClient.get(URLs.resources.resourcesCategories.get, { params }) - }, + getResourcesCategories: ( + params?: GetResourcesParams + ): Promise>> => { + return axiosClient.get(URLs.resources.resourcesCategories.get, { params }) + }, getResourcesCategoriesNames: (): Promise> => axiosClient.get(URLs.resources.resourcesCategories.getNames) - }