v27.1
This commit is contained in:
+3
-1
@@ -205,7 +205,7 @@ 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`, `ipinfo`, `donation_alerts`) |
|
||||
| `GET` | `/admin/settings/:category` | none | Returns settings for the given category (`panel`, `subscription`, `telegram`, `ipinfo`, `donation_alerts`, `donatepay`) |
|
||||
| `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 |
|
||||
@@ -213,6 +213,7 @@ This file lists the current HTTP routes exposed by Core, grouped by access level
|
||||
| `PATCH` | `/admin/settings/donation-alerts` | `{ clientId?: string, clientSecret?: string, redirectUri?: string, donationPageUrl?: string, commissionPercent?: number }` | Saves DonationAlerts OAuth application and payment settings. Changing OAuth credentials clears existing tokens. |
|
||||
| `POST` | `/admin/payments/donation-alerts/authorization-url` | none | Creates a short-lived OAuth state and returns the DonationAlerts authorization URL with `oauth-donation-index` scope. |
|
||||
| `POST` | `/admin/payments/donation-alerts/callback` | `{ code: string, state: string }` | Exchanges an OAuth callback code for access and refresh tokens. Access tokens are refreshed automatically. |
|
||||
| `PATCH` | `/admin/settings/donatepay` | `{ accessToken?: string, donationPageUrl?: string, commissionPercent?: number }` | Configures DonatePay transaction polling and optional commission. |
|
||||
|
||||
## Admin routes - broadcasts
|
||||
|
||||
@@ -370,6 +371,7 @@ This file lists the current HTTP routes exposed by Core, grouped by access level
|
||||
- `SubscriptionSettingsDto` - `allowedHosts?`, `rootPath?`, `updateInterval?`, `name?`, `supportUrl?`, `websiteUrl?`
|
||||
- `TelegramSettingsDto` - `botToken?`
|
||||
- `DonationAlertsSettingsDto` - `clientId?`, `clientSecret?`, `redirectUri?`, `donationPageUrl?`, `commissionPercent?`
|
||||
- `DonatePaySettingsDto` - `accessToken?`, `donationPageUrl?`, `commissionPercent?`
|
||||
|
||||
### Broadcasts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user