Mercurial > hg > Members > anatofuz > growsync
changeset 12:2bfcdd284ce5
fix endpoint
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Dec 2020 17:12:20 +0900 |
parents | 194dd547e5c5 |
children | 7577f95fdbcb |
files | client/page.go version.go |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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{}