
* add trpc * trpc specific * fix deps * lint fix * upgrade prisma * nativeTypes * nope, not needed * fix app propviders * Revert "upgrade prisma" This reverts commit e6f2d2542a01ec82c80aa2fe367ae12c68ded1a5. * rev * up trpc * simplify * wip - bookings page with trpc * bookings using trpc * fix `Shell` props * call it viewerRouter instead * cleanuop * ssg helper * fix lint * fix types * skip * add `useRedirectToLoginIfUnauthenticated` * exhaustive-deps * fix callbackUrl * rewrite `/availability` using trpc Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
10 lines
210 B
TypeScript
10 lines
210 B
TypeScript
import * as trpc from "@trpc/server";
|
|
|
|
import { Context } from "./createContext";
|
|
|
|
/**
|
|
* Helper function to create a router with context
|
|
*/
|
|
export function createRouter() {
|
|
return trpc.router<Context>();
|
|
}
|