-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathold-code.js
44 lines (44 loc) · 1.57 KB
/
old-code.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// const newsColecctions = [
// {
// category: 'Headlines',
// colecctiondb: 'Headlines',
// url: `https://newsapi.org/v2/top-headlines?country=us&apiKey=16c97751c4254e3eb593aa7a7975a3b2`,
// id: 'headlineNewsId'
// },
// {
// category: 'Business',
// colecctiondb: 'Business',
// url: `https://newsapi.org/v2/top-headlines?country=us&category=Business&apiKey=16c97751c4254e3eb593aa7a7975a3b2`,
// id: 'businessNewsId'
// },
// {
// category: 'Technology',
// colecctiondb: 'Technology',
// url: `https://newsapi.org/v2/top-headlines?country=us&category=Technology&apiKey=16c97751c4254e3eb593aa7a7975a3b2`,
// id: 'technologyNewsId'
// },
// {
// category: 'Science',
// colecctiondb: 'Science',
// url: `https://newsapi.org/v2/top-headlines?country=us&category=Science&apiKey=16c97751c4254e3eb593aa7a7975a3b2`,
// id: 'scienceNewsId'
// },
// {
// category: 'Entertainment',
// colecctiondb: 'Entertainment',
// url: `https://newsapi.org/v2/top-headlines?country=us&category=Entertainment&apiKey=16c97751c4254e3eb593aa7a7975a3b2`,
// id: 'entertainmentNewsId'
// },
// {
// category: 'Health',
// colecctiondb: 'Health',
// url: `https://newsapi.org/v2/top-headlines?country=us&category=Health&apiKey=16c97751c4254e3eb593aa7a7975a3b2`,
// id: 'healthNewsId'
// },
// {
// category: 'Sports',
// colecctiondb: 'Sports',
// url: `https://newsapi.org/v2/top-headlines?country=us&category=Sports&apiKey=16c97751c4254e3eb593aa7a7975a3b2`,
// id: 'SportsNewsId'
// }
// ];