| title: Flask Command API | |
| emoji: 🚀 | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: docker | |
| sdk_version: "1.0" | |
| app_file: app.py | |
| pinned: false | |
| # Flask Command Server | |
| 一個簡單的 Flask 應用,透過 `/set_command` 設定指令,並從 `/get_command` 取得目前指令。 | |
| ## API 說明 | |
| ### POST `/set_command` | |
| ```json | |
| { "command": "your_command" } | |
| ``` | |
| ### GET `/get_command` | |
| ```json | |
| { "command": "your_command" } | |
| ``` | |