feat: implement lootdrop management endpoints and fix class api types

This commit is contained in:
syntaxbullet
2026-02-08 16:56:34 +01:00
parent 4232674494
commit 073348fa55
3 changed files with 154 additions and 4 deletions

View File

@@ -350,6 +350,36 @@ List economy transactions.
---
---
## Lootdrops
### `GET /api/lootdrops`
List lootdrops (default limit 50, sorted by newest).
| Query Param | Type | Description |
|-------------|------|-------------|
| `limit` | number | Max results (default: 50) |
**Response:** `{ "lootdrops": [...] }`
### `POST /api/lootdrops`
Spawn a lootdrop in a channel.
**Body:**
```json
{
"channelId": "1234567890",
"amount": 100,
"currency": "Gold"
}
```
### `DELETE /api/lootdrops/:messageId`
Cancel and delete a lootdrop.
---
## Quests
### `GET /api/quests`