52 lines
484 B
Markdown
52 lines
484 B
Markdown
# Config UI
|
|
|
|
a web app to edit and action on update
|
|
|
|
## Api
|
|
|
|
### Files
|
|
|
|
`GET /api/files`
|
|
|
|
res:
|
|
```json
|
|
{
|
|
"test": {
|
|
"path": "test",
|
|
"name": "test",
|
|
"action": "myip local -P",
|
|
"data": ""
|
|
}
|
|
}
|
|
```
|
|
|
|
### File
|
|
|
|
`GET /api/file?name=ALIAS`
|
|
|
|
res:
|
|
```json
|
|
{
|
|
"action": "myip local -P",
|
|
"data": "test",
|
|
"name": "test",
|
|
"path": "test"
|
|
}
|
|
```
|
|
|
|
### Update
|
|
|
|
`POST /api/file`
|
|
|
|
req:
|
|
```json
|
|
{
|
|
"data": "test",
|
|
"name": "test",
|
|
}
|
|
```
|
|
|
|
### Apply
|
|
|
|
`POST /api/apply?name=ALIAS`
|