basic route-specific trpc file example

This commit is contained in:
Avraham Sakal
2025-06-29 15:17:10 -04:00
parent 602ba72f75
commit 5ef118e9bc
10 changed files with 303 additions and 44 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { appRouter } from "../trpc/server";
import { appRouter } from "../trpc/router";
// TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
import type { Get, UniversalHandler } from "@universal-middleware/core";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";