Basic implementation
This commit is contained in:
parent
dfda2f0f54
commit
38718968b0
|
@ -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() {
|
||||
|
|
|
@ -7,3 +7,4 @@ export * from "./table"
|
|||
export * from "./permission"
|
||||
export * from "./attachment"
|
||||
export * from "./user"
|
||||
export * from "./rowAction"
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export interface CreateRowActionRequest {}
|
||||
|
||||
export interface RowAction {}
|
Loading…
Reference in New Issue