feat: init quizblock

This commit is contained in:
swve 2023-02-28 23:00:38 +01:00
parent eebaef6679
commit 23412ce19a
10 changed files with 263 additions and 6 deletions

View file

@ -0,0 +1,10 @@
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;
}