refactor: convert admin user management to Server Actions

- Add src/app/actions/admin.ts with updateUserRoles, deleteUser, resetUserPassword
- Update EditUserDialog, DeleteUserDialog, ResetPasswordDialog to use Server Actions
- Remove admin users API routes (PATCH/DELETE/PUT)
This commit is contained in:
2026-02-28 11:06:42 +01:00
parent 7134c069d7
commit b40f59bec6
7 changed files with 87 additions and 164 deletions

View File

@@ -15,6 +15,9 @@
| `POST /api/komga/config` | `saveKomgaConfig()` | ✅ Done |
| `PUT /api/user/password` | `changePassword()` | ✅ Done |
| `POST /api/auth/register` | `registerUser()` | ✅ Done |
| `PATCH /api/admin/users/[userId]` | `updateUserRoles()` | ✅ Done |
| `DELETE /api/admin/users/[userId]` | `deleteUser()` | ✅ Done |
| `PUT /api/admin/users/[userId]/password` | `resetUserPassword()` | ✅ Done |
---