mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
10 lines
No EOL
404 B
TypeScript
10 lines
No EOL
404 B
TypeScript
import { getAPIUrl } from "@services/config";
|
|
import { RequestBody, RequestBodyForm } from "@services/utils/requests";
|
|
|
|
|
|
export async function submitQuizBlock(lecture_id: string, data: any) {
|
|
const result: any = await fetch(`${getAPIUrl()}blocks/quiz/${lecture_id}"`, RequestBody("POST", data))
|
|
.then((result) => result.json())
|
|
.catch((error) => console.log("error", error));
|
|
return result;
|
|
} |