feat(user stuff): added in all the user stuff

This commit is contained in:
2025-10-28 21:06:37 -05:00
parent 147d189a81
commit 0ddf67d815
21 changed files with 412 additions and 159 deletions

View File

@@ -59,7 +59,7 @@ export default function ExpandedRow({ row }: { row: any }) {
// user,
// });
try {
const result = await api.patch(`/api/admin/${user.id}/grant`, {
const result = await api.patch(`/api/admin/users/${user.id}/grant`, {
module: module,
role: role,
});
@@ -83,7 +83,7 @@ export default function ExpandedRow({ row }: { row: any }) {
const onDeleteRole = async (module: string) => {
try {
const result = await api.patch(`/api/admin/${user.id}/revoke`, {
const result = await api.patch(`/api/admin/users/${user.id}/revoke`, {
module: module,
});