This commit is contained in:
Estifo77
2026-07-27 11:52:56 +03:00
parent af85fca02a
commit 163e02e7af
9 changed files with 834 additions and 277 deletions

View File

@@ -14,12 +14,11 @@ const configurationApi = baseApi.injectEndpoints({
providesTags: ["Api"],
}),
getProfessions: builder.query<ListResponse<Profession>, { q?: string }>({
getProfessions: builder.query<ListResponse<Profession>, string>({
query: (params) => ({
url: "/professions",
params,
url: `/professions?q=${encodeURIComponent(params)}`,
}),
providesTags: ["Api"],
providesTags: ["Api", "backOfficeApi", "ProfessionApi"],
}),
createProfession: builder.mutation<Profession, CreateProfessionPayload>({
query: (body) => ({ url: "/professions", method: "POST", body }),