mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2025-12-13 01:24:44 -05:00
- Updated database connection to support Turso auth token - Added vercel.json with bun build configuration - Updated environment schema for production deployment - Added new features and components for production readiness
28 lines
846 B
TypeScript
28 lines
846 B
TypeScript
import { clientsRouter } from "~/server/api/routers/clients";
|
|
import { businessesRouter } from "~/server/api/routers/businesses";
|
|
import { invoicesRouter } from "~/server/api/routers/invoices";
|
|
import { createCallerFactory, createTRPCRouter } from "~/server/api/trpc";
|
|
|
|
/**
|
|
* This is the primary router for your server.
|
|
*
|
|
* All routers added in /api/routers should be manually added here.
|
|
*/
|
|
export const appRouter = createTRPCRouter({
|
|
clients: clientsRouter,
|
|
businesses: businessesRouter,
|
|
invoices: invoicesRouter,
|
|
});
|
|
|
|
// export type definition of API
|
|
export type AppRouter = typeof appRouter;
|
|
|
|
/**
|
|
* Create a server-side caller for the tRPC API.
|
|
* @example
|
|
* const trpc = createCaller(createContext);
|
|
* const res = await trpc.clients.getAll();
|
|
* ^? Client[]
|
|
*/
|
|
export const createCaller = createCallerFactory(appRouter);
|