fix url
parent
a58c2b340c
commit
a1ee372710
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue