このコミットが含まれているのは:
@@ -0,0 +1,14 @@
|
||||
import { apiGet } from '@/lib/api'
|
||||
|
||||
import type { WikiPage } from '@/types'
|
||||
|
||||
|
||||
export const fetchWikiPage = async (id: string): Promise<WikiPage> =>
|
||||
await apiGet (`/wiki/${ id }`)
|
||||
|
||||
|
||||
export const fetchWikiPageByTitle = async (
|
||||
title: string,
|
||||
{ version }: { version?: string },
|
||||
): Promise<WikiPage> =>
|
||||
await apiGet (`/wiki/title/${ title }`, { params: version ? { version } : { } })
|
||||
新しい課題から参照
ユーザをブロックする