mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 09:12:02 +10:00
wip: refresh design
This commit is contained in:
12
apps/web/src/pages/api/trpc/[trpc].ts
Normal file
12
apps/web/src/pages/api/trpc/[trpc].ts
Normal file
@ -0,0 +1,12 @@
|
||||
import * as trpcNext from '@documenso/trpc/server/adapters/next';
|
||||
import { createTrpcContext } from '@documenso/trpc/server/context';
|
||||
import { appRouter } from '@documenso/trpc/server/router';
|
||||
|
||||
export default trpcNext.createNextApiHandler({
|
||||
router: appRouter,
|
||||
createContext: ({ req, res }) => createTrpcContext({ req, res }),
|
||||
});
|
||||
|
||||
// export default async function handler(_req: NextApiRequest, res: NextApiResponse) {
|
||||
// res.json({ hello: 'world' });
|
||||
// }
|
||||
Reference in New Issue
Block a user