Skip to content

Commit

Permalink
Fix integration with new shiori api
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjdev committed Apr 3, 2024
1 parent 1b8c45d commit 53f2c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/integration/shiori/shiori.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (c *Client) CreateBookmark(entryURL, entryTitle string) error {
return fmt.Errorf("shiori: unable to authenticate: %v", err)
}

apiEndpoint, err := urllib.JoinBaseURLAndPath(c.baseURL, "/api/bookmarks")
apiEndpoint, err := urllib.JoinBaseURLAndPath(c.baseURL, "/api/v1/bookmarks")
if err != nil {
return fmt.Errorf("shiori: invalid API endpoint: %v", err)
}
Expand Down Expand Up @@ -76,7 +76,7 @@ func (c *Client) CreateBookmark(entryURL, entryTitle string) error {
}

func (c *Client) authenticate() (sessionID string, err error) {
apiEndpoint, err := urllib.JoinBaseURLAndPath(c.baseURL, "/api/login")
apiEndpoint, err := urllib.JoinBaseURLAndPath(c.baseURL, "/api/v1/auth/login")
if err != nil {
return "", fmt.Errorf("shiori: invalid API endpoint: %v", err)
}
Expand Down

0 comments on commit 53f2c4f

Please sign in to comment.