This commit is contained in:
2026-03-19 17:23:29 +07:00
parent 9dddc3f377
commit 7950b401dc
7 changed files with 1735 additions and 8 deletions

View File

@@ -28,6 +28,8 @@ export const api = {
login: (body) => request("/auth/login", { method: "POST", body: JSON.stringify(body) }),
logout: () => request("/auth/logout", { method: "POST" }),
tables: () => request("/db/tables"),
createTable: (body) => request("/db/tables", { method: "POST", body: JSON.stringify(body) }),
deleteTable: (tableName) => request(`/db/tables/${tableName}`, { method: "DELETE" }),
tableDetails: (tableName) => request(`/db/tables/${tableName}/details`),
rows: (tableName, query = {}) => {
const params = new URLSearchParams(query).toString();