Change api url and add meta
This commit is contained in:
parent
3714e70e1e
commit
675ff18c08
2 changed files with 37 additions and 3 deletions
|
|
@ -8,8 +8,10 @@ import { tap } from 'rxjs/operators';
|
|||
providedIn: 'root'
|
||||
})
|
||||
export class NewsService {
|
||||
private apiKey: string = 'e9bb2770d3374edea421bcadbecdca5c';
|
||||
private apiUrl: string = `https://newsapi.org/v2/everything?q=covid&language=fr&apiKey=${this.apiKey}`;
|
||||
/* private apiKey: string = 'e9bb2770d3374edea421bcadbecdca5c';
|
||||
private apiUrl: string = `https://newsapi.org/v2/everything?q=covid&language=fr&apiKey=${this.apiKey}`; */
|
||||
|
||||
private apiUrl: string = `https://gitpushf.uk/news-proxy.php`;
|
||||
private storageKey: string = 'newsData'; // Clé utilisée pour le localStorage
|
||||
private lastUpdateKey: string = 'lastUpdate'; // Clé pour stocker la date de la dernière mise à jour
|
||||
private cacheDuration: number = 60 * 60 * 1000; // Durée en millisecondes (par exemple, 1 heure)
|
||||
|
|
|
|||
|
|
@ -2,10 +2,42 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Angular Covid</title>
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="/assets/logo.ico">
|
||||
|
||||
<meta name="author" content="TeamFlash — Corporation | ExostFlash">
|
||||
|
||||
<!-- Twitter Cards (si tu partages sur X/Twitter) -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="Angular Covid">
|
||||
<meta name="twitter:description" content="Site pour les cours sur angular, avec pour théme le covid car on aime les maladies">
|
||||
<meta name="twitter:image" content="https://gitpushf.uk/favicon.ico">
|
||||
|
||||
<meta name="theme-color" content="#0D6EFD">
|
||||
|
||||
<!-- HTML Meta Tags -->
|
||||
<title>Angular Covid</title>
|
||||
<meta name="description" content="Site pour les cours sur angular, avec pour théme le covid car on aime les maladies">
|
||||
|
||||
<!-- Facebook Meta Tags -->
|
||||
<meta property="og:url" content="https://gitpushf.uk">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="Angular Covid">
|
||||
<meta property="og:description" content="Site pour les cours sur angular, avec pour théme le covid car on aime les maladies">
|
||||
<meta property="og:image" content="https://gitpushf.uk/favicon.ico">
|
||||
|
||||
<!-- Twitter Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:domain" content="gitpushf.uk">
|
||||
<meta property="twitter:url" content="https://gitpushf.uk">
|
||||
<meta name="twitter:title" content="Angular Covid">
|
||||
<meta name="twitter:description" content="Site pour les cours sur angular, avec pour théme le covid car on aime les maladies">
|
||||
<meta name="twitter:image" content="https://gitpushf.uk/favicon.ico">
|
||||
|
||||
<!-- Meta Tags Generated via https://www.opengraph.xyz -->
|
||||
|
||||
|
||||
</head>
|
||||
<body class="background-all">
|
||||
<app-root></app-root>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue