mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 12:27:44 +00:00
feat: demo
This commit is contained in:
12
demo/nextjs/lib/router.ts
Normal file
12
demo/nextjs/lib/router.ts
Normal 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)
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user