1 import {getService} from '@loopback/service-proxy';
2 import {inject, Provider} from '@loopback/core';
3 import {BlueprintDataSource} from '../datasources';
5 export interface BlueprintService {
6 getAllblueprints(): Promise<any>;
9 export class BlueprintServiceProvider implements Provider<BlueprintService> {
11 // blueprint must match the name property in the datasource json file
12 @inject('datasources.blueprint')
13 protected dataSource: BlueprintDataSource = new BlueprintDataSource(),
16 value(): Promise<BlueprintService> {
17 return getService(this.dataSource);