fix:#28 fixed info panel and edited backend api for fix

This commit is contained in:
Elmar Kresse
2023-10-27 00:03:14 +02:00
parent c874cbed30
commit 090342736d
6 changed files with 27 additions and 23 deletions

View File

@@ -1,12 +1,12 @@
import { Module } from "../model/module";
export async function fetchModule(name: string): Promise<Module> {
export async function fetchModule(module: Module): Promise<Module> {
const request = new Request("/api/module", {
method: "GET",
method: "POST",
headers: {
"Content-Type": "application/json",
Name: encodeURI(name),
},
body: JSON.stringify(module),
});
return await fetch(request)