fix worker + start create modal with logic

This commit is contained in:
Ishaan Dey
2024-04-23 01:53:37 -04:00
parent 54617877f9
commit ffee1b60c7
26 changed files with 979 additions and 5426 deletions

15
frontend/lib/actions.ts Normal file
View File

@ -0,0 +1,15 @@
"use server"
export async function createSandbox(body: {
type: string
name: string
visibility: string
}) {
const res = await fetch("http://localhost:8787/api/sandbox/create", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(body),
})
}