From cdac52a742b1b0fa954963f7bbe87272e29011a4 Mon Sep 17 00:00:00 2001 From: Fredrik Oseberg Date: Mon, 9 Aug 2021 14:20:53 +0200 Subject: [PATCH] Add project api --- src/lib/routes/admin-api/project/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/lib/routes/admin-api/project/index.ts diff --git a/src/lib/routes/admin-api/project/index.ts b/src/lib/routes/admin-api/project/index.ts new file mode 100644 index 0000000000..a031baaa9c --- /dev/null +++ b/src/lib/routes/admin-api/project/index.ts @@ -0,0 +1,11 @@ +import Controller from '../../controller'; +import { IUnleashConfig } from '../../../types/option'; +import { IUnleashServices } from '../../../types/services'; +import ProjectHealthReport from './health-report'; + +export default class ProjectApi extends Controller { + constructor(config: IUnleashConfig, services: IUnleashServices) { + super(config); + this.use('/', new ProjectHealthReport(config, services).router); + } +}