(id: number)
| 214 | } |
| 215 | |
| 216 | export async function getPostById(id: number): Promise<Post> { |
| 217 | return wordpressFetch<Post>(`/wp-json/wp/v2/posts/${id}`); |
| 218 | } |
| 219 | |
| 220 | export async function getPostBySlug(slug: string): Promise<Post | undefined> { |
| 221 | const posts = await wordpressFetchGraceful<Post[]>( |
nothing calls this directly
no test coverage detected