Generate route with prefix (#1200)

* Generate route with prefix

* Update api convert

* Remove TrimSpace

* Update path join

* Format code

* Format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
anqiansong
2021-11-03 20:57:03 +08:00
committed by GitHub
parent 6aba5f74fc
commit 01786c5e63
8 changed files with 43 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ func TsCommand(c *cli.Context) error {
return err
}
api.Service = api.Service.JoinPrefix()
logx.Must(util.MkdirIfNotExist(dir))
logx.Must(genHandler(dir, webAPI, caller, api, unwrapAPI))
logx.Must(genComponents(dir, api))