feat: init activity starting from course

This commit is contained in:
swve 2023-01-22 15:43:42 +01:00
parent a21ccb3626
commit cf7285b6f9
8 changed files with 247 additions and 70 deletions

View file

@ -0,0 +1,13 @@
export const RequestBody = (method: string, data: any) => {
let HeadersConfig = new Headers({ "Content-Type": "application/json" });
let options: any = {
method: method,
headers: HeadersConfig,
redirect: "follow",
credentials: "include",
};
if (data) {
options.body = JSON.stringify(data);
}
return options;
};