mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: format with prettier
This commit is contained in:
parent
03fb09c3d6
commit
a147ad6610
164 changed files with 11257 additions and 8154 deletions
|
|
@ -1,10 +1,12 @@
|
|||
import { getAPIUrl } from "@services/config/config";
|
||||
import { RequestBody } from "@services/utils/ts/requests";
|
||||
|
||||
import { getAPIUrl } from '@services/config/config'
|
||||
import { RequestBody } from '@services/utils/ts/requests'
|
||||
|
||||
export async function submitQuizBlock(activity_id: string, data: any) {
|
||||
const result: any = await fetch(`${getAPIUrl()}blocks/quiz/${activity_id}"`, RequestBody("POST", data, null))
|
||||
const result: any = await fetch(
|
||||
`${getAPIUrl()}blocks/quiz/${activity_id}"`,
|
||||
RequestBody('POST', data, null)
|
||||
)
|
||||
.then((result) => result.json())
|
||||
.catch((error) => console.log("error", error));
|
||||
return result;
|
||||
}
|
||||
.catch((error) => console.log('error', error))
|
||||
return result
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue