feat: Enhance admin user management system

- Add admin override capability to DELETE /api/auth/account endpoint
- Move /api/auth/users to admin-only with complete user fields (first_name, last_name, role, theme)
- Consolidate Bruno requests: remove duplicate List Users (Admin), merge Delete Account functionality
- Update all documentation to reflect enhanced capabilities
- Implement pgx 5 standards compliance with proper error handling

BREAKING CHANGES:
- /api/auth/users endpoint now requires admin role (was previously accessible)
- DELETE /api/auth/account accepts optional user_id parameter for admin deletion
This commit is contained in:
2026-01-27 13:36:11 -05:00
parent 9262a35f68
commit 71584c1b55
11 changed files with 345 additions and 52 deletions
+1
View File
@@ -2,6 +2,7 @@ vars {
base_url: http://localhost:8765
ebookid: 02a535a4-19f8-43fa-b81b-89a226d19dd9
fakebookid: 123e4567-e89b-12d3-a456-426614174000
user_id: c51118f0-31fc-4c32-827d-517d6599bf21
}
vars:secret [
token