small changes
This commit is contained in:
parent
676e2231b0
commit
858dc41ebb
2 changed files with 6 additions and 4 deletions
|
|
@ -18,7 +18,9 @@ const NewsPage = () => {
|
|||
const fetchNews = async () => {
|
||||
try {
|
||||
console.log("Fetching news...");
|
||||
const response = await fetch("https://raw.githubusercontent.com/TomorrowMC/newsDemoData/main/data.json");
|
||||
const response = await fetch(
|
||||
"https://raw.githubusercontent.com/newspedia-crew/newspedia-web/intern-change/public/data/index.json",
|
||||
);
|
||||
console.log("Response status:", response.status);
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
|
|
@ -72,4 +74,4 @@ const NewsPage = () => {
|
|||
);
|
||||
};
|
||||
|
||||
export default NewsPage;
|
||||
export default NewsPage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue