Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 8507a52

Browse files
committed
init
1 parent cf45b99 commit 8507a52

File tree

6 files changed

+575
-11
lines changed

6 files changed

+575
-11
lines changed

client/src/state/adminApi.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,18 @@ export const adminApi = createApi({
125125
// Enable caching
126126
keepUnusedDataFor: 300, // Keep data for 5 minutes
127127
}),
128-
128+
getSecurityIncidents: build.query({
129+
query: ({ page, limit, filters }) => ({
130+
url: `/security/security-incidents`,
131+
method: 'GET',
132+
params: {
133+
page,
134+
limit,
135+
...filters
136+
}
137+
}),
138+
providesTags: ['SecurityIncidents']
139+
}),
129140
//request
130141
getRequests: build.query({
131142
query: () => '/general/requests',
@@ -151,6 +162,9 @@ export const adminApi = createApi({
151162
invalidatesTags: ['Requests']
152163
}),
153164

165+
//security
166+
167+
154168
getPerformance: build.query({
155169
query: () => 'hr/performance',
156170
}),
@@ -314,6 +328,7 @@ useGetUserActivityQuery,
314328
useGetUserPermissionsQuery,
315329
useResetPasswordMutation,
316330
useGetLogsQuery,
331+
useGetSecurityIncidentsQuery,
317332

318333
useGetRequestsQuery,
319334
useReceiveRequestMutation,

0 commit comments

Comments
 (0)