Build dashboards and workflow tools faster with contributions from ops, data, and product teams.
export default async (req: Request) => { const { query } = await req.json(); const res = await fetch(GrandOps.env.get("INTERNAL_API"), { method: "POST", headers: { Authorization: `Bearer ${GrandOps.env.get("INTERNAL_TOKEN")}`, "Content-Type": "application/json", }, body: JSON.stringify({ query }), }); return new Response(res.body, { headers: { "Content-Type": "application/json" }, }); }; export const config = { path: "/api/internal" };
Build dashboards and workflow tools faster. Start building today.