mirror of
https://github.com/kaaninchen/Laterna.git
synced 2026-09-17 19:12:48 +00:00
📚 feat(docs): improve README
This commit is contained in:
@@ -62,10 +62,10 @@ The token is shown once on the first startup. To regenerate it, run the server w
|
|||||||
|
|
||||||
#### 🎛️ Controllers
|
#### 🎛️ Controllers
|
||||||
|
|
||||||
| Method | Route | Description | Request Body |
|
| Method | Route | Description |
|
||||||
| ------ | -------------- | ----------------------------- | ------------- |
|
| ------ | -------------- | ----------------------------- |
|
||||||
| POST | `/controllers` | Create a new controller | — |
|
| POST | `/controllers` | Create a new controller |
|
||||||
| DELETE | `/controllers` | Delete an existing controller | `{ "ID": 1 }` |
|
| DELETE | `/controllers` | Delete an existing controller |
|
||||||
|
|
||||||
<details> <summary>🔧 Example Payload</summary>
|
<details> <summary>🔧 Example Payload</summary>
|
||||||
|
|
||||||
@@ -80,11 +80,11 @@ The token is shown once on the first startup. To regenerate it, run the server w
|
|||||||
|
|
||||||
#### 🎨 Colors
|
#### 🎨 Colors
|
||||||
|
|
||||||
| Method | Route | Description | Request Body |
|
| Method | Route | Description |
|
||||||
| ------ | -------------- | -------------------------------------------------- | ------------------------ |
|
| ------ | -------------- | -------------------------------------------------- |
|
||||||
| GET | `/colors/` | Get the current color of all available controllers | — |
|
| GET | `/colors/` | Get the current color of all available controllers |
|
||||||
| GET | `/colors/{id}` | Get the current color of a specific controller | — |
|
| GET | `/colors/{id}` | Get the current color of a specific controller |
|
||||||
| PUT | `/colors/{id}` | Set the color of a controller | `{ "color": "#FF0000" }` |
|
| PUT | `/colors/{id}` | Set the color of a controller |
|
||||||
|
|
||||||
<details> <summary>🔧 Example Payload</summary>
|
<details> <summary>🔧 Example Payload</summary>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user