mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-28 11:21:21 +00:00
feat: enhance professions management with server-side pagination and advanced table component
This commit is contained in:
@@ -14,8 +14,11 @@ const configurationApi = baseApi.injectEndpoints({
|
||||
providesTags: ['Api'],
|
||||
}),
|
||||
|
||||
getProfessions: builder.query<ListResponse<Profession>, void>({
|
||||
query: () => '/professions',
|
||||
getProfessions: builder.query<
|
||||
ListResponse<Profession>,
|
||||
{ skip?: number; take?: number; q?: string } | void
|
||||
>({
|
||||
query: (arg) => ({ url: '/professions', params: arg ?? {} }),
|
||||
providesTags: ['Api'],
|
||||
}),
|
||||
createProfession: builder.mutation<Profession, CreateProfessionPayload>({
|
||||
|
||||
Reference in New Issue
Block a user