MCPcopy Create free account
hub / github.com/TanStack/router / createServerEntry

Function createServerEntry

packages/solid-start/src/default-entry/server.ts:13–19  ·  view source on GitHub ↗
(entry: ServerEntry)

Source from the content-addressed store, hash-verified

11export type ServerEntry = { fetch: RequestHandler<Register> }
12
13export function createServerEntry(entry: ServerEntry): ServerEntry {
14 return {
15 async fetch(...args) {
16 return await entry.fetch(...args)
17 },
18 }
19}
20
21export default createServerEntry({ fetch })

Callers 1

server.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected