Burn it all to the ground and start with bun and a reorg

This commit is contained in:
2025-05-09 17:51:29 +01:00
parent 6eaf1d6b9f
commit 95f317fd75
82 changed files with 3001 additions and 13108 deletions

23
src/server/api/root.ts Normal file
View File

@@ -0,0 +1,23 @@
import { createCallerFactory, createTRPCRouter } from "@/server/api/trpc";
import { photosRouter } from "./routers/photos/photos";
/**
* This is the primary router for your server.
*
* All routers added in /api/routers should be manually added here.
*/
export const appRouter = createTRPCRouter({
photos: photosRouter,
});
// export type definition of API
export type AppRouter = typeof appRouter;
/**
* Create a server-side caller for the tRPC API.
* @example
* const trpc = createCaller(createContext);
* const res = await trpc.post.all();
* ^? Post[]
*/
export const createCaller = createCallerFactory(appRouter);