mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
Rename internal url package to avoid overlap with net/url
This commit is contained in:
parent
9f465fd70d
commit
e5d9f2f5a0
23 changed files with 74 additions and 75 deletions
|
@ -14,7 +14,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"miniflux.app/v2/internal/url"
|
||||
"miniflux.app/v2/internal/urllib"
|
||||
"miniflux.app/v2/internal/version"
|
||||
)
|
||||
|
||||
|
@ -34,7 +34,7 @@ func (c *Client) AddLink(entryURL, entryTitle string) error {
|
|||
return fmt.Errorf("shaarli: missing base URL or API secret")
|
||||
}
|
||||
|
||||
apiEndpoint, err := url.JoinBaseURLAndPath(c.baseURL, "/api/v1/links")
|
||||
apiEndpoint, err := urllib.JoinBaseURLAndPath(c.baseURL, "/api/v1/links")
|
||||
if err != nil {
|
||||
return fmt.Errorf("shaarli: invalid API endpoint: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue