|
1 | 1 | import * as trpcExpress from "@trpc/server/adapters/express" |
2 | | -import path from "path" |
3 | | -import express from "express" |
4 | 2 | import cors from "cors" |
5 | | -import { prisma } from "./utils/prisma" |
| 3 | +import express from "express" |
| 4 | +import path from "path" |
6 | 5 | import swaggerUi from "swagger-ui-express" |
7 | | - |
8 | | -import { createContext, router } from "./trpc" |
9 | | -import { userRouter } from "./user/router" |
10 | | -import { listRouter } from "./list/router" |
11 | | -import { organizationRouter } from "./organization/router" |
12 | | -import { subscriberRouter } from "./subscriber/router" |
13 | | -import { templateRouter } from "./template/router" |
| 6 | +import { apiRouter } from "./api/server" |
14 | 7 | import { campaignRouter } from "./campaign/router" |
| 8 | +import { ONE_PX_PNG } from "./constants" |
| 9 | +import { dashboardRouter } from "./dashboard/router" |
| 10 | +import { listRouter } from "./list/router" |
15 | 11 | import { messageRouter } from "./message/router" |
| 12 | +import { organizationRouter } from "./organization/router" |
16 | 13 | import { settingsRouter } from "./settings/router" |
17 | | -import { webhookRouter } from "./webhook/router" |
18 | | -import swaggerSpec from "./swagger" |
19 | | -import { apiRouter } from "./api/server" |
20 | | -import { dashboardRouter } from "./dashboard/router" |
21 | 14 | import { statsRouter } from "./stats/router" |
22 | | -import { ONE_PX_PNG } from "./constants" |
| 15 | +import { subscriberRouter } from "./subscriber/router" |
| 16 | +import swaggerSpec from "./swagger" |
| 17 | +import { templateRouter } from "./template/router" |
| 18 | +import { createContext, router } from "./trpc" |
| 19 | +import { userRouter } from "./user/router" |
| 20 | +import { prisma } from "./utils/prisma" |
23 | 21 | import { handleWebhook } from "./webhook/handler" |
| 22 | +import { webhookRouter } from "./webhook/router" |
24 | 23 |
|
25 | 24 | const appRouter = router({ |
26 | 25 | user: userRouter, |
|
0 commit comments