import { getService } from '@loopback/service-proxy' ; import { inject , Provider , bind } from '@loopback/core' ; import { RecommenderDataSource } from '../datasources/recommender.datasource' ; import { RecommenderService , recommender } from './recommender.service' ; /**
 * Rest based recommender service
 */ @ bind ( recommender ( 'rest' ) ) export class RecommenderRestServiceProvider implements Provider < RecommenderService > { constructor ( @ inject ( 'datasources.recommender' ) protected datasource ) { } value ( ) { return getService ( this . datasource ) ; } }