fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-10-21 21:54:59 +08:00
parent e96611c62b
commit 53ae1a8ef8
3 changed files with 29 additions and 0 deletions

View File

@@ -70,3 +70,11 @@ export async function createCode(data: { code: string; query: string }) {
export async function removeCode(id: number) {
await api.delete(`/${id}`)
}
export async function debug(code: string, inputs: string[]) {
const res = await api.post("/debug", {
code,
inputs,
})
return res.data
}