(slug: string)
| 271 | } |
| 272 | |
| 273 | export async function getTagBySlug(slug: string): Promise<Tag> { |
| 274 | return wordpressFetch<Tag[]>("/wp-json/wp/v2/tags", { slug }).then( |
| 275 | (tags) => tags[0] |
| 276 | ); |
| 277 | } |
| 278 | |
| 279 | export async function getAllPages(): Promise<Page[]> { |
| 280 | return wordpressFetchGraceful<Page[]>("/wp-json/wp/v2/pages", [], undefined, [ |
no test coverage detected