Add Server Data management

This commit is contained in:
2025-04-03 20:10:41 +02:00
parent 0552bccb02
commit b12db15bbe
7 changed files with 915 additions and 70 deletions

View File

@@ -2,17 +2,15 @@ import { publicProcedure, router } from '~/server/trpc/init';
import { z } from 'zod';
export const appRouter = router({
hello: publicProcedure
.input(
z.object({
text: z.string(),
}),
)
.query((opts) => {
return {
greeting: `hello ${opts.input.text}`,
};
hello: publicProcedure.input(
z.object({
text: z.string(),
}),
).query((opts) => {
return {
greeting: `hello ${opts.input.text}`,
};
}),
});
// export type definition of API