feat: demo

This commit is contained in:
Bereket Engida
2024-09-16 13:53:41 +03:00
parent 1452de923f
commit c945d1ba95
104 changed files with 20586 additions and 227 deletions

12
demo/nextjs/lib/router.ts Normal file
View File

@@ -0,0 +1,12 @@
import { createRouter } from "better-call";
import { createTodo } from "./actions";
export const router = createRouter({
createTodo,
}, {
basePath: "/api/v1",
onError(e) {
console.log(e)
},
})