import { Injectable } from '@angular/core' ; import { User } from './user-detail' ; import { MyApiGatewayService } from '../my-api-gateway.service' ; @ Injectable ( ) export class UserListService { constructor ( public apiGateway ) { } findAllUserSummary ( ) { return this . apiGateway . get ( 'users' ) ; } }