mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
15 lines
455 B
TypeScript
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 };
|