add project deletion in storage & connect to ip port 3000

This commit is contained in:
Ishaan Dey
2024-05-23 23:05:01 -07:00
parent 218afd4fe0
commit 1528ea5257
5 changed files with 32 additions and 39 deletions

View File

@ -64,36 +64,6 @@ export function addNew(
}
}
// export async function startServer(
// sandboxId: string,
// userId: string,
// callback: (success: boolean) => void
// ) {
// try {
// const res = await fetch("http://localhost:4001/start", {
// method: "POST",
// headers: {
// "Content-Type": "application/json",
// },
// body: JSON.stringify({
// sandboxId,
// userId,
// }),
// });
// if (res.status !== 200) {
// console.error("Failed to start server", res);
// callback(false);
// }
// callback(true);
// } catch (error) {
// console.error("Failed to start server", error);
// callback(false);
// }
// }
export function checkServiceStatus(serviceName: string): Promise<Service> {
return new Promise((resolve, reject) => {
let tries = 0;