(tagId: number)
| 252 | } |
| 253 | |
| 254 | export async function getPostsByTag(tagId: number): Promise<Post[]> { |
| 255 | return wordpressFetch<Post[]>("/wp-json/wp/v2/posts", { tags: tagId }); |
| 256 | } |
| 257 | |
| 258 | export async function getTagsByPost(postId: number): Promise<Tag[]> { |
| 259 | return wordpressFetch<Tag[]>("/wp-json/wp/v2/tags", { post: postId }); |
nothing calls this directly
no test coverage detected