MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / createContext

Function createContext

lrpc/src/dev.ts:15–20  ·  view source on GitHub ↗
(
	x: NodeHTTPCreateContextFnOptions<IncomingMessage, ServerResponse>,
)

Source from the content-addressed store, hash-verified

13// run with `npm run dev`
14
15async function createContext(
16 x: NodeHTTPCreateContextFnOptions<IncomingMessage, ServerResponse>,
17): Promise<Context> {
18 const user = await getUser(x.req.headers)
19 return { user }
20}
21
22const handler = createHTTPHandler({
23 router: appRouter,

Callers 6

themeSelector.tsxFile · 0.50
isModContext.tsxFile · 0.50
userIdContext.tsxFile · 0.50
whoAmIContext.tsxFile · 0.50

Calls 1

getUserFunction · 0.90

Tested by

no test coverage detected