Go to file
Evan Chen ef4a8021a5 first commit 2021-10-18 16:49:16 +08:00
configui first commit 2021-10-18 16:49:16 +08:00
templates first commit 2021-10-18 16:49:16 +08:00
.dockerignore first commit 2021-10-18 16:49:16 +08:00
.gitignore first commit 2021-10-18 16:49:16 +08:00
Dockerfile first commit 2021-10-18 16:49:16 +08:00
Makefile first commit 2021-10-18 16:49:16 +08:00
README.md first commit 2021-10-18 16:49:16 +08:00
go.mod first commit 2021-10-18 16:49:16 +08:00
main.go first commit 2021-10-18 16:49:16 +08:00
release.sh first commit 2021-10-18 16:49:16 +08:00

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