1
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
2
3
type Airtable = {
4
apiKey: string;
5
};
6
7
type AirtableTable = {
8
baseId: string;
9
tableName: string;
10
11
export async function main(atCon: Airtable, atTable: AirtableTable) {
12
const airtable = new Airtable({ ...atCon, ...atTable });
13
const result_list = await airtable.select();
14
15
return { results: result_list };
16
}
17