fix process guard bug

This commit is contained in:
Max 2022-04-07 16:59:55 +08:00
parent a21995c357
commit 95e36f09a1

View file

@ -26,7 +26,7 @@ func LoadFrom(dir string, prefix string) error {
err := share.Walk(dir, ".http.json", func(root, filename string) { err := share.Walk(dir, ".http.json", func(root, filename string) {
name := prefix + share.SpecName(root, filename) name := prefix + share.SpecName(root, filename)
content := share.ReadFile(filename) content := share.ReadFile(filename)
_, err := gou.LoadAPIReturn(string(content), name) _, err := gou.LoadAPIReturn(string(content), name, "bearer-jwt")
if err != nil { if err != nil {
log.With(log.F{"root": root, "file": filename}).Error(err.Error()) log.With(log.F{"root": root, "file": filename}).Error(err.Error())
} }