format
This commit is contained in:
@@ -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 });
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user