Evan Chen 95e9383138 | ||
---|---|---|
configui | ||
templates | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
Makefile | ||
README.md | ||
api.go | ||
go.mod | ||
main.go | ||
release.sh | ||
util.go |
README.md
Config UI
a web app to edit and action on update
Api
Files
GET /api/files
res:
{
"test": {
"path": "test",
"name": "test",
"action": "myip local -P",
"data": ""
}
}
File
GET /api/file?name=ALIAS
res:
{
"action": "myip local -P",
"data": "test",
"name": "test",
"path": "test"
}
Update
POST /api/file
req:
{
"data": "test",
"name": "test",
}
Apply
POST /api/apply?name=ALIAS