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

Commit 928e8d9

Browse files
committed
init
1 parent 420d86e commit 928e8d9

File tree

5 files changed

+636
-444
lines changed

5 files changed

+636
-444
lines changed

client/src/state/adminApi.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export const adminApi = createApi({
6060
}),
6161

6262
//admin
63+
getPermissions: build.query({
64+
query: () => "general/permissions", // API endpoint
65+
}),
66+
6367

6468
setBackupDirectory: build.mutation({
6569
query: (data) => ({
@@ -275,6 +279,7 @@ export const {
275279
useRegisterUserMutation,
276280

277281
//admin
282+
useGetPermissionsQuery,
278283
useSetBackupDirectoryMutation,
279284
useBackupDatabaseMutation,
280285
useRestoreDatabaseMutation,

0 commit comments

Comments
 (0)