diff --git a/aio/content/examples/toh-pt6/src/app/hero-search.service.ts b/aio/content/examples/toh-pt6/src/app/hero-search.service.ts index d24e0fba41..52bf95a158 100644 --- a/aio/content/examples/toh-pt6/src/app/hero-search.service.ts +++ b/aio/content/examples/toh-pt6/src/app/hero-search.service.ts @@ -14,7 +14,7 @@ export class HeroSearchService { search(term: string): Observable { return this.http - .get(`app/heroes/?name=${term}`) + .get(`api/heroes/?name=${term}`) .map(response => response.json().data as Hero[]); } } diff --git a/aio/content/examples/universal/src/app/hero-search.service.ts b/aio/content/examples/universal/src/app/hero-search.service.ts index d24e0fba41..52bf95a158 100644 --- a/aio/content/examples/universal/src/app/hero-search.service.ts +++ b/aio/content/examples/universal/src/app/hero-search.service.ts @@ -14,7 +14,7 @@ export class HeroSearchService { search(term: string): Observable { return this.http - .get(`app/heroes/?name=${term}`) + .get(`api/heroes/?name=${term}`) .map(response => response.json().data as Hero[]); } }