diff --git a/src/app/services/article.service.ts b/src/app/services/article.service.ts index f2e5fdd..77051fd 100644 --- a/src/app/services/article.service.ts +++ b/src/app/services/article.service.ts @@ -29,13 +29,13 @@ export class ArticleService { } getArticleBySlug(slug: string): Observable
{ - return this.http.get
(`${this.apiUrl}/${slug}`).pipe( + return this.http.get
(`${this.apiUrl}/slug/${slug}`).pipe( map(article => article) ); } getArticleById(id: number): Observable
{ - return this.http.get
(`${this.apiUrl}/${id}`).pipe( + return this.http.get
(`${this.apiUrl}/id/${id}`).pipe( map(article => article) ); }