Basic implementation

This commit is contained in:
Adria Navarro 2024-07-10 13:24:00 +02:00
parent dfda2f0f54
commit 38718968b0
3 changed files with 18 additions and 2 deletions

View File

@ -1,9 +1,21 @@
import { CreateRowActionRequest, Ctx, RowAction } from "@budibase/types"
import sdk from "../../../sdk"
export function find() {
throw new Error("Function not implemented.")
}
export function create() {
throw new Error("Function not implemented.")
export async function create(ctx: Ctx<CreateRowActionRequest, RowAction>) {
const { tableId } = ctx.params
const table = await sdk.tables.getTable(tableId)
if (!table) {
ctx.throw(404)
}
// TODO
ctx.status = 201
}
export function update() {

View File

@ -7,3 +7,4 @@ export * from "./table"
export * from "./permission"
export * from "./attachment"
export * from "./user"
export * from "./rowAction"

View File

@ -0,0 +1,3 @@
export interface CreateRowActionRequest {}
export interface RowAction {}