columns: { "id" => ex.ColumnType.STRING, "title" => ex.ColumnType.STRING }, primaryKey: "id" ) as "taskTable"; let counter = new cloud.Counter(); // あとで解説 let api = new cloud.Api(); let path = "/tasks";
let rows = tasks.list(); let var result = MutArray<Json>[]; for row in rows { result.push(row); } return cloud.ApiResponse{ status: 200, headers: { "Content-Type" => "application/json" }, body: Json.stringify(result) }; });