diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 59a2f1a..573d87a 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -80,7 +80,8 @@ export const routes: Routes = [ }, { path: 'blog/:slug', - component: ArticlePageComponent }, + component: ArticlePageComponent + }, { path: '**', pathMatch: 'full', diff --git a/src/app/services/article.service.ts b/src/app/services/article.service.ts index 0520391..e01456d 100644 --- a/src/app/services/article.service.ts +++ b/src/app/services/article.service.ts @@ -25,7 +25,8 @@ export class ArticleService { constructor(private http: HttpClient) {} getAllArticles(): Observable { - return this.http.get(this.apiUrl); + const timeStampedUrl = "/api/articles?timestamp=" + new Date().getTime(); + return this.http.get(timeStampedUrl); } getArticleBySlug(slug: string): Observable
{