Go to file
Evan Chen 95e9383138 update 2021-10-18 18:59:09 +08:00
configui update 2021-10-18 18:59:09 +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
api.go update 2021-10-18 18:59:09 +08:00
go.mod first commit 2021-10-18 16:49:16 +08:00
main.go update 2021-10-18 18:59:09 +08:00
release.sh first commit 2021-10-18 16:49:16 +08:00
util.go update 2021-10-18 18:59:09 +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