From 5b05c55c8f673a85d3f363f81ca329f56c95fc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ewilan=20Rivi=C3=A8re?= Date: Fri, 4 Oct 2024 09:30:15 +0200 Subject: [PATCH] Update API URLs in README.md and code files --- README.md | 6 +++--- src/routes/api/index.ts | 6 +++--- tests/feeds.test.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index be96b39..4662a99 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ Query parameters > [!WARNING]\ > If crawler is not a browser, response will be original XML feed. -Example: +Example: ### JSON @@ -105,7 +105,7 @@ Query parameters | ----- | -------- | -------- | ----------- | --------------------------------- | | `url` | true | `string` | `undefined` | URL of RSS feed, allow base64 URL | -Example: +Example: ### XML @@ -126,7 +126,7 @@ Query parameters | ----- | -------- | -------- | ----------- | --------------------------------- | | `url` | true | `string` | `undefined` | URL of RSS feed, allow base64 URL | -Example: +Example: ## Tests diff --git a/src/routes/api/index.ts b/src/routes/api/index.ts index 6e36012..bfc06b1 100644 --- a/src/routes/api/index.ts +++ b/src/routes/api/index.ts @@ -11,7 +11,7 @@ export default async () => { format: '`html` or `json`, optional, default `html`, type of response, default `html` will render HTML page, `json` will give JSON response with HTML string', }, about: 'Render HTML from RSS feed. If User-Agent is not a browser, it will return XML RSS feed', - example: route('/api/render', { query: { url: 'https://2hdp.fr/2HDP.xml' } }), + example: route('/api/render', { query: { url: 'http://zqsd.fr/zqsd.xml' } }), }, parser: { url: route('/api/json'), @@ -19,7 +19,7 @@ export default async () => { url: '`string`, required, url to RSS feed (could be base64 encoded)', }, about: 'Parse RSS feed and return JSON', - example: route('/api/json', { query: { url: 'https://2hdp.fr/2HDP.xml' } }), + example: route('/api/json', { query: { url: 'http://zqsd.fr/zqsd.xml' } }), }, xml: { url: route('/api/xml'), @@ -27,7 +27,7 @@ export default async () => { url: '`string`, required, url to RSS feed (could be base64 encoded)', }, about: 'Parse XML RSS feed and return XML (useful for feeds with HTML render)', - example: route('/api/xml', { query: { url: 'https://feedpress.me/rdvjeux' } }), + example: route('/api/xml', { query: { url: 'http://zqsd.fr/zqsd.xml' } }), }, }, } diff --git a/tests/feeds.test.ts b/tests/feeds.test.ts index ede46c6..d511092 100644 --- a/tests/feeds.test.ts +++ b/tests/feeds.test.ts @@ -13,7 +13,7 @@ const feeds = [ 'http://www.zqsd.fr/zqsd.xml', 'http://feeds.feedburner.com/LaperoDuCaptain', 'https://feeds.acast.com/public/shows/cabcdc65-9f15-5900-a971-d6d96f16ed31', - 'https://2hdp.fr/2HDP.xml', + 'http://zqsd.fr/zqsd.xml', 'https://feeds.acast.com/public/shows/b6dda9e2-3ed6-4145-8bcf-3a279a1e1baa', ]