This commit is contained in:
Avraham Sakal
2025-06-27 16:25:35 -04:00
parent 2a4ff2e509
commit 602ba72f75
18 changed files with 149 additions and 67 deletions
+2
View File
@@ -1,4 +1,5 @@
import { initTRPC } from "@trpc/server";
import { todos } from "../database/todoItems";
/**
* Initialization of tRPC backend
@@ -26,6 +27,7 @@ export const appRouter = router({
})
.mutation(async (opts) => {
console.log("Received new todo", { text: opts.input });
todos.push({ text: opts.input });
}),
});