We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c6337c commit 209cf1cCopy full SHA for 209cf1c
src/js/fetchRssData.js
@@ -2,11 +2,12 @@ import axios from "axios";
2
import { model } from "./model/index.js";
3
4
export const fetchRssData = (link) => {
5
- const proxyUrl = `https://allorigins.hexlet.app/raw?disableCache=true&url=${encodeURIComponent(link)}`;
+ const proxyUrl = `https://allorigins.hexlet.app/get?disableCache=true&url=${encodeURIComponent(link)}`;
6
return axios
7
.get(proxyUrl)
8
.then((response) => {
9
- return response.data;
+ const data = response.data;
10
+ return data.contents;
11
})
12
.catch((error) => {
13
model.error.handle(error, "fetch");
0 commit comments