14 lines
274 B
TypeScript
14 lines
274 B
TypeScript
|
|
import { createApi } from '@convex-dev/better-auth';
|
||
|
|
import { createAuthOptions } from '../auth';
|
||
|
|
import schema from './schema';
|
||
|
|
|
||
|
|
export const {
|
||
|
|
create,
|
||
|
|
findOne,
|
||
|
|
findMany,
|
||
|
|
updateOne,
|
||
|
|
updateMany,
|
||
|
|
deleteOne,
|
||
|
|
deleteMany,
|
||
|
|
} = createApi(schema, createAuthOptions);
|