mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-30 02:58:12 +00:00
test
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user