MSP-3174 add securityLogServiceApi in store
This commit is contained in:
1 parent
bdb2805844
commit
2977dfdce7
1 file changed
+4
-1
@@ -6,12 +6,12 @@ import { createContext, Dispatch, SetStateAction } from 'react'
|
|||||||
import accessListApi from '@services/accessListService.ts'
|
import accessListApi from '@services/accessListService.ts'
|
||||||
import appApi from '@services/appService.ts'
|
import appApi from '@services/appService.ts'
|
||||||
import roleApi from '@services/roleService.ts'
|
import roleApi from '@services/roleService.ts'
|
||||||
|
import securityLogServiceApi from '@services/securityLogService.ts'
|
||||||
import userServiceApi from '@services/userService.ts'
|
import userServiceApi from '@services/userService.ts'
|
||||||
import routeApi from '@services/routeService.ts'
|
import routeApi from '@services/routeService.ts'
|
||||||
|
|
||||||
import profileReducer from './redusers/ProfileSlice.ts'
|
import profileReducer from './redusers/ProfileSlice.ts'
|
||||||
|
|
||||||
|
|
||||||
export interface ContextProps {
|
export interface ContextProps {
|
||||||
setTheme: Dispatch<
|
setTheme: Dispatch<
|
||||||
SetStateAction<{ algorithm: (token: SeedToken) => MapToken }>
|
SetStateAction<{ algorithm: (token: SeedToken) => MapToken }>
|
||||||
@@ -26,6 +26,7 @@ const rootReducer = combineReducers({
|
|||||||
profileReducer,
|
profileReducer,
|
||||||
[roleApi.reducerPath]: roleApi.reducer,
|
[roleApi.reducerPath]: roleApi.reducer,
|
||||||
[userServiceApi.reducerPath]: userServiceApi.reducer,
|
[userServiceApi.reducerPath]: userServiceApi.reducer,
|
||||||
|
[securityLogServiceApi.reducerPath]: securityLogServiceApi.reducer,
|
||||||
[appApi.reducerPath]: appApi.reducer,
|
[appApi.reducerPath]: appApi.reducer,
|
||||||
[accessListApi.reducerPath]: accessListApi.reducer,
|
[accessListApi.reducerPath]: accessListApi.reducer,
|
||||||
[routeApi.reducerPath]: routeApi.reducer
|
[routeApi.reducerPath]: routeApi.reducer
|
||||||
@@ -37,6 +38,8 @@ export const setupStore = () =>
|
|||||||
middleware: (getDefaultMiddleware) =>
|
middleware: (getDefaultMiddleware) =>
|
||||||
getDefaultMiddleware().concat(
|
getDefaultMiddleware().concat(
|
||||||
roleApi.middleware,
|
roleApi.middleware,
|
||||||
|
userServiceApi.middleware,
|
||||||
|
securityLogServiceApi.middleware,
|
||||||
appApi.middleware,
|
appApi.middleware,
|
||||||
accessListApi.middleware,
|
accessListApi.middleware,
|
||||||
routeApi.middleware,
|
routeApi.middleware,
|
||||||
|
|||||||
Reference in new issue
Block a user