fix url
parent
a58c2b340c
commit
a1ee372710
|
@ -138,12 +138,11 @@ type Cli struct {
|
||||||
|
|
||||||
func (c *Cli) OCR(opts *Opts) (*Alto, error) {
|
func (c *Cli) OCR(opts *Opts) (*Alto, error) {
|
||||||
res := &Alto{}
|
res := &Alto{}
|
||||||
err := c.HttpCli().JsonPost("/", opts, res)
|
err := c.HttpCli().JsonPost("/ipc/ocr/", opts, res)
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewCli() *Cli {
|
func NewCli() *Cli {
|
||||||
ret := &Cli{ApiCli: api.NewApiCli()}
|
ret := &Cli{ApiCli: api.NewApiCli()}
|
||||||
ret.ApiCli.HttpCli().SetBasePath("http://ocr/")
|
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue