From ed3bba244a6866cd4e1d7b031af603b8fb2bed2d Mon Sep 17 00:00:00 2001 From: mikheykinnv Date: Wed, 24 Apr 2024 11:52:47 +0800 Subject: [PATCH] MSP-3106 connect api to reducer --- src/stores/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/stores/index.tsx b/src/stores/index.tsx index 2e37302..7b8403f 100644 --- a/src/stores/index.tsx +++ b/src/stores/index.tsx @@ -12,6 +12,8 @@ import userServiceApi from '@services/userService.ts' import routeApi from '@services/routeService.ts' import profileReducer from './redusers/ProfileSlice.ts' +import applicationsGroupApi from '@services/applicationsGroupService.ts' +import applicationsApi from '@services/applicationsService.ts' export interface ContextProps { setTheme: Dispatch< @@ -31,7 +33,9 @@ const rootReducer = combineReducers({ [securityLogServiceApi.reducerPath]: securityLogServiceApi.reducer, [appApi.reducerPath]: appApi.reducer, [accessListApi.reducerPath]: accessListApi.reducer, - [routeApi.reducerPath]: routeApi.reducer + [routeApi.reducerPath]: routeApi.reducer, + [applicationsGroupApi.reducerPath]: applicationsGroupApi.reducer, + [applicationsApi.reducerPath]: applicationsApi.reducer, }) export const setupStore = () => @@ -46,7 +50,9 @@ export const setupStore = () => accessListApi.middleware, routeApi.middleware, userServiceApi.middleware, - sessionServiceApi.middleware + sessionServiceApi.middleware, + applicationsGroupApi.middleware, + applicationsApi.middleware ) })