From f52cf7ce4451fd5fa1bbc6cf30e5b2a0acab7276 Mon Sep 17 00:00:00 2001 From: swapnalipode Date: Fri, 10 Jan 2020 22:28:48 +0530 Subject: Adding integration to backend in Controller catalog Adding integration to backend in controller catalog Change-Id: Ia423d05ee5b089af6df70296a40d36d84892d488 Issue-ID: CCSDK-814 Signed-off-by: swapnalipode --- .../src/datasources/controller-catalog.datasource.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cds-ui/server/src/datasources/controller-catalog.datasource.ts (limited to 'cds-ui/server/src/datasources/controller-catalog.datasource.ts') diff --git a/cds-ui/server/src/datasources/controller-catalog.datasource.ts b/cds-ui/server/src/datasources/controller-catalog.datasource.ts new file mode 100644 index 000000000..d711d4693 --- /dev/null +++ b/cds-ui/server/src/datasources/controller-catalog.datasource.ts @@ -0,0 +1,14 @@ +import {inject} from '@loopback/core'; +import {juggler} from '@loopback/repository'; +import config from './controller-catalog.datasource-template'; + +export class ControllerCatalogDataSource extends juggler.DataSource { + static dataSourceName = 'controllerCatalog'; + + constructor( + @inject('datasources.config.controllerCatalog', {optional: true}) + dsConfig: object = config, + ) { + super(dsConfig); + } +} -- cgit 1.2.3-korg