feat(system): add restart server endpoint with authentication

This commit is contained in:
2026-05-10 18:09:49 +08:00
parent 02bcfea745
commit 933c12fca1
3 changed files with 63 additions and 3 deletions
+26
View File
@@ -129,6 +129,32 @@ X-Timestamp: 1704067200000
---
## Restart Server
**Endpoint:** `/system/restart`
**Method:** GET
**Permission Level:** Admin
**Request Headers:**
```
X-Token: your_token
X-Timestamp: 1704067200000
```
| Header | Type | Required | Description |
|--------|------|----------|-------------|
| X-Token | string | Yes | Authentication token |
| X-Timestamp | int64 | Yes | Client timestamp in milliseconds |
**Response:**
```json
{
"success": true,
"message": "Restarting server..."
}
```
---
## Register User
**Endpoint:** `/register`