First pass on bot management page

This commit is contained in:
Benjamin Sherriff
2023-10-08 00:18:39 -04:00
parent 0ec6264bfa
commit 1035d3bc21
8 changed files with 233 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ export async function getRequest(endpoint: string, params: any): Promise<AxiosRe
export async function postRequest(endpoint: string, body: any): Promise<AxiosResponse<any, any> | undefined> {
const response = await axios
.post(`${serviceHost}:${servicePort}/${endpoint}`, { body })
.post(`${serviceHost}:${servicePort}/${endpoint}`, body || {})
.catch((error) => console.error(error));
return response || undefined;
}