nats
Paulo Simão 2021-11-03 19:33:25 -03:00
parent a58c2b340c
commit a1ee372710
1 changed files with 1 additions and 2 deletions

View File

@ -138,12 +138,11 @@ type Cli struct {
func (c *Cli) OCR(opts *Opts) (*Alto, error) {
res := &Alto{}
err := c.HttpCli().JsonPost("/", opts, res)
err := c.HttpCli().JsonPost("/ipc/ocr/", opts, res)
return res, err
}
func NewCli() *Cli {
ret := &Cli{ApiCli: api.NewApiCli()}
ret.ApiCli.HttpCli().SetBasePath("http://ocr/")
return ret
}