Skip to content

Commit

Permalink
host url fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksNV committed Mar 3, 2021
1 parent 49d286a commit cf309b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/go-resty/resty/v2"
)

const HostUrl = "https://api.localeum.com/api"
const HostUrl = "https://api.localeum.com/public-api"

type Api struct {
client *resty.Client
Expand All @@ -17,7 +17,7 @@ func NewApiClient() *Api {

a.client.SetHeaders(map[string]string{
"Content-Type": "application/json",
"User-Agent": "Localeum CLI",
"User-Agent": "Localeum CLI",
})

return a
Expand All @@ -31,4 +31,4 @@ func (a *Api) Get(path string, query map[string]string) (*resty.Response, error)
return a.client.R().
SetQueryParams(query).
Get(path)
}
}

0 comments on commit cf309b0

Please sign in to comment.