parent
a0764aa7be
commit
38b1cf4b33
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
import { httpPatch } from './http'; |
||||||
|
|
||||||
|
export async function toggleMarkResourceDoneApi({ |
||||||
|
resourceId, |
||||||
|
resourceType, |
||||||
|
topicId, |
||||||
|
}: { |
||||||
|
resourceId: string; |
||||||
|
resourceType: 'roadmap' | 'best-practice'; |
||||||
|
topicId: string; |
||||||
|
}) { |
||||||
|
return await httpPatch<{ |
||||||
|
status: 'ok'; |
||||||
|
}>(`${import.meta.env.PUBLIC_API_URL}/v1-toggle-mark-resource-done`, { |
||||||
|
resourceId, |
||||||
|
resourceType, |
||||||
|
topicId, |
||||||
|
}); |
||||||
|
} |
Loading…
Reference in new issue