2024-04-23 01:53:37 -04:00

16 lines
309 B
TypeScript

"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),
})
}