update webapi

This commit is contained in:
ginuerzh
2022-02-09 11:37:09 +08:00
parent f1eaef8d69
commit c1bf501734
5 changed files with 792 additions and 12 deletions

View File

@ -94,6 +94,7 @@ func main() {
}
if cfg.API != nil && cfg.API.Addr != "" {
api.Init(cfg.API)
ln, err := net.Listen("tcp", cfg.API.Addr)
if err != nil {
log.Fatal(err)