rename and move related codes together

This commit is contained in:
Ronmi Ren 2025-01-07 22:17:16 +08:00
commit 63e4038a28
3 changed files with 45 additions and 51 deletions

View file

@ -47,7 +47,7 @@ var serveCmd = &cobra.Command{
Branch: branch,
}
s, err := lib.Run(bind, f)
s, err := lib.UseAPI(bind, f)
if err != nil {
fmt.Println("cannot create server: ", err)
return