gristlabs_grist-core/app/server/lib/scim/index.ts
2024-10-18 14:42:52 +02:00

15 lines
455 B
TypeScript

import * as express from 'express';
import { buildScimRouterv2 } from './v2/ScimV2Api';
import { HomeDBManager } from 'app/gen-server/lib/homedb/HomeDBManager';
import { InstallAdmin } from '../InstallAdmin';
const buildScimRouter = (dbManager: HomeDBManager, installAdmin: InstallAdmin) => {
const v2 = buildScimRouterv2(dbManager, installAdmin);
const scim = express.Router();
scim.use('/v2', v2);
return scim;
};
export { buildScimRouter };