feat(system): add restart server endpoint with authentication

This commit is contained in:
NanamiAdmin committed 2026-05-10 18:09:49 +08:00
1 parent 02bcfea745
commit 933c12fca1
3 files changed
+63 -3

No files matched your search

+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`