v26
This commit is contained in:
+3
-2
@@ -70,6 +70,7 @@ This file lists the current HTTP routes exposed by Core, grouped by access level
|
||||
| `POST` | `/admin/users` | `CreateAdminUserDto` | Creates a user account |
|
||||
| `GET` | `/admin/users/:id` | none | User detail |
|
||||
| `GET` | `/admin/users/:id/stats` | none | User stats |
|
||||
| `GET` | `/admin/users/:id/ips` | none | Flat IP history ordered by latest use (`lastSeenAt DESC`) |
|
||||
| `PATCH` | `/admin/users/:id` | `UpdateUserDto` | Updates email, password, role, block flag, name, comment |
|
||||
| `PATCH` | `/admin/users/:id/status` | `UpdateUserStatusDto` | Approves, rejects, or restores a user |
|
||||
| `GET` | `/admin/users/:id/referees` | none | Users invited by this user |
|
||||
@@ -203,10 +204,11 @@ This file lists the current HTTP routes exposed by Core, grouped by access level
|
||||
|
||||
| Method | Route | Input | Output / Notes |
|
||||
| --- | --- | --- | --- |
|
||||
| `GET` | `/admin/settings/:category` | none | Returns settings for the given category (`panel`, `subscription`, `telegram`) |
|
||||
| `GET` | `/admin/settings/:category` | none | Returns settings for the given category (`panel`, `subscription`, `telegram`, `ipinfo`) |
|
||||
| `PATCH` | `/admin/settings/panel` | `PanelSettingsDto` | Updates panel settings |
|
||||
| `PATCH` | `/admin/settings/subscription` | `SubscriptionSettingsDto` | Updates subscription delivery settings |
|
||||
| `PATCH` | `/admin/settings/telegram` | `TelegramSettingsDto` | Updates Telegram bot settings |
|
||||
| `PATCH` | `/admin/settings/ipinfo` | `IpInfoSettingsDto` | Updates the IPinfo Lite API token |
|
||||
|
||||
## Admin routes - broadcasts
|
||||
|
||||
@@ -368,4 +370,3 @@ This file lists the current HTTP routes exposed by Core, grouped by access level
|
||||
|
||||
- `CreateBroadcastDto` - `text`, `filters?` (`{ nodeIds?: number[] }`), `scheduledAt?`
|
||||
- `UpdateBroadcastDto` - partial `CreateBroadcastDto`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user