mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-22 13:15:23 +00:00
Replace all usage of getPublishedContentByUrl (#3395)
This commit is contained in:
@@ -52,7 +52,7 @@ export async function getSiteAPIToken(url: string) {
|
||||
const api = new GitBookAPI({
|
||||
endpoint: 'https://api.gitbook.com/cache',
|
||||
});
|
||||
const { data } = await api.urls.getPublishedContentByUrl({
|
||||
const { data } = await api.urls.resolvePublishedContentByUrl({
|
||||
url,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user