remove unnecessary pages and files that came with the Vike init

This commit is contained in:
Avraham Sakal
2025-08-27 07:40:37 -04:00
parent 18411402f5
commit b11c34b660
14 changed files with 2 additions and 277 deletions
+1 -16
View File
@@ -1,22 +1,7 @@
import { router, publicProcedure } from "../trpc/server";
import { todos } from "../database/todoItems";
import { router } from "../trpc/server";
import { chat } from "../pages/chat/trpc";
export const appRouter = router({
demo: publicProcedure.query(async () => {
return { demo: true };
}),
onNewTodo: publicProcedure
.input((value): string => {
if (typeof value === "string") {
return value;
}
throw new Error("Input is not a string");
})
.mutation(async (opts) => {
console.log("Received new todo", { text: opts.input });
todos.push({ text: opts.input });
}),
chat,
});