mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-25 05:47:12 +02:00
Switch to tRPC (#173)
This commit is contained in:
parent
3d7e7e8a95
commit
2c4157ea24
245 changed files with 1585 additions and 1755 deletions
9
src/server/context.ts
Normal file
9
src/server/context.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import * as trpcNext from "@trpc/server/adapters/next";
|
||||
|
||||
export async function createContext(opts: trpcNext.CreateNextContextOptions) {
|
||||
const session = opts.req.session;
|
||||
|
||||
return {
|
||||
session,
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue