# HG changeset patch # User anatofuz # Date 1608019940 -32400 # Node ID 2bfcdd284ce56dec939774b63e40164ee6ade709 # Parent 194dd547e5c5b45f7a330fcc09906555c3208c84 fix endpoint diff -r 194dd547e5c5 -r 2bfcdd284ce5 client/page.go --- a/client/page.go Mon Dec 14 22:54:23 2020 +0900 +++ b/client/page.go Tue Dec 15 17:12:20 2020 +0900 @@ -100,7 +100,7 @@ var ErrorPageNotFOund = errors.New("page not found") -const CREATE_ENDPOINT string = "/_api/v3/pages.create" +const CREATE_ENDPOINT string = "/_api/v3/pages/create" // Create makes a page in your Crowi. The request requires // the path and page content used for the page name @@ -123,7 +123,7 @@ return &createPages, nil } -const GET_ENDPOINT string = "/_api/v3/pages.get" +const GET_ENDPOINT string = "/_api/pages.get" func (p *PagesService) Get(ctx context.Context, path string) (*Page, error) { params := url.Values{} @@ -146,7 +146,7 @@ return &pagesGet.Page, nil } -const UpdateEndpoint string = "/_api/v3/pages.update" +const UpdateEndpoint string = "/_api/pages.update" func (p *PagesService) Update(ctx context.Context, pageID, revisionID, body string) (*Page, error) { params := url.Values{} diff -r 194dd547e5c5 -r 2bfcdd284ce5 version.go --- a/version.go Mon Dec 14 22:54:23 2020 +0900 +++ b/version.go Tue Dec 15 17:12:20 2020 +0900 @@ -1,3 +1,3 @@ package growsync -const version = "0.1.0" +const version = "0.2.1"