Expose team tRPC endpoint
Create PR containing updated CHANGELOG.md and release packages to NPM once PR is merged / Release (push) Has been cancelled
Run i18n AI automation / Run i18n (push) Has been cancelled
Next.js Bundle Analysis / analyze (push) Has been cancelled

This commit is contained in:
2026-06-08 19:06:52 -06:00
parent 3581bad590
commit dda6e1dcdd
3 changed files with 16 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
import { createNextApiHandler } from "@calcom/trpc/server/createNextApiHandler";
import { teamsRouter } from "@calcom/trpc/server/routers/viewer/teams/_router";
export default createNextApiHandler(teamsRouter);
@@ -0,0 +1,11 @@
import fs from "node:fs";
import path from "node:path";
import { ENDPOINTS } from "@calcom/trpc/react/shared";
import { describe, expect, test } from "vitest";
describe("team tRPC endpoint", () => {
test("registers and exposes the teams router endpoint", () => {
expect(ENDPOINTS).toContain("teams");
expect(fs.existsSync(path.join(process.cwd(), "apps/web/pages/api/trpc/teams/[trpc].ts"))).toBe(true);
});
});
+1
View File
@@ -26,6 +26,7 @@ export const ENDPOINTS = [
"public", "public",
"timezones", "timezones",
"slots", "slots",
"teams",
"travelSchedules", "travelSchedules",
"users", "users",
"viewer", "viewer",