* Add unsend email editor Add email editor Add more email editor Add renderer partial Add more marketing email features * Add more campaign feature * Add variables * Getting there * campaign is there mfs * Add migration
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { domainRouter } from "~/server/api/routers/domain";
|
|
import { createCallerFactory, createTRPCRouter } from "~/server/api/trpc";
|
|
import { apiRouter } from "./routers/api";
|
|
import { emailRouter } from "./routers/email";
|
|
import { teamRouter } from "./routers/team";
|
|
import { adminRouter } from "./routers/admin";
|
|
import { contactsRouter } from "./routers/contacts";
|
|
import { campaignRouter } from "./routers/campaign";
|
|
|
|
/**
|
|
* This is the primary router for your server.
|
|
*
|
|
* All routers added in /api/routers should be manually added here.
|
|
*/
|
|
export const appRouter = createTRPCRouter({
|
|
domain: domainRouter,
|
|
apiKey: apiRouter,
|
|
email: emailRouter,
|
|
team: teamRouter,
|
|
admin: adminRouter,
|
|
contacts: contactsRouter,
|
|
campaign: campaignRouter,
|
|
});
|
|
|
|
// 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.post.all();
|
|
* ^? Post[]
|
|
*/
|
|
export const createCaller = createCallerFactory(appRouter);
|