(id: number)
| 267 | } |
| 268 | |
| 269 | export async function getTagById(id: number): Promise<Tag> { |
| 270 | return wordpressFetch<Tag>(`/wp-json/wp/v2/tags/${id}`); |
| 271 | } |
| 272 | |
| 273 | export async function getTagBySlug(slug: string): Promise<Tag> { |
| 274 | return wordpressFetch<Tag[]>("/wp-json/wp/v2/tags", { slug }).then( |
nothing calls this directly
no test coverage detected