gristlabs_grist-core/app/server/lib/scim/index.ts

15 lines
455 B
TypeScript
Raw Normal View History

2024-08-29 08:13:48 +00:00
import * as express from 'express';
2024-09-02 15:50:42 +00:00
import { buildScimRouterv2 } from './v2/ScimV2Api';
import { HomeDBManager } from 'app/gen-server/lib/homedb/HomeDBManager';
import { InstallAdmin } from '../InstallAdmin';
2024-08-29 08:13:48 +00:00
2024-09-02 15:50:42 +00:00
const buildScimRouter = (dbManager: HomeDBManager, installAdmin: InstallAdmin) => {
const v2 = buildScimRouterv2(dbManager, installAdmin);
2024-08-29 08:13:48 +00:00
const scim = express.Router();
scim.use('/v2', v2);
return scim;
};
export { buildScimRouter };