mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
11 lines
284 B
TypeScript
11 lines
284 B
TypeScript
|
import { Hooks } from '@logto/schemas/lib/models/hooks.js';
|
||
|
import { createModelRouter } from '@withtyped/postgres';
|
||
|
|
||
|
import envSet from '#src/env-set/index.js';
|
||
|
|
||
|
const modelRouters = {
|
||
|
hook: createModelRouter(Hooks, envSet.queryClient).withCrud(),
|
||
|
};
|
||
|
|
||
|
export default modelRouters;
|