Appearance
Admin API
Base path: `/api/admin`
Requires Admin Token.
Authentication
Admin Login
- Method: `POST`
- Endpoint: `/auth/login`
- Body: `{"email": "...", "password": "..."}`
Dashboard
Get Stats
- Method: `GET`
- Endpoint: `/dashboard/stats` Returns system-wide counts for Users, Groups, Expenses.
User Management
List Users
- Method: `GET`
- Endpoint: `/users`
Suspend User
- Method: `PUT`
- Endpoint: `/users/:userId/suspend`
System
Get Error Logs
- Method: `GET`
- Endpoint: `/errors`
Get Feedback
- Method: `GET`
- Endpoint: `/feedback`