A few lines of code connect your app to many integrations. Spend your development resources on the features that matter to your customers, not integrations.
It's simple. Reduced costs, quicker time to market, and more added value into your product.
import { BuildingBlocked } from "@building-blocked/client";
export async function handler(request) {
const token = getTokenForRequest(request);
const bb = new BuildingBlocked({ token });
const timeEntries = await bb.timeEntries.list();
return Response.json(timeEntries);
}
import { BuildingBlocked } from "@building-blocked/client";
export async function handler(request) {
let token = getTokenForRequest(request);
let bb = new BuildingBlocked({ token });
let formData = await request.formData();
let timeEntrie = await bb.timeEntries.create({
start: formData.get("start"),
end: formData.get("end"),
description: formData.get("description"),
});
return Response.json(timeEntrie);
}