mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 05:59:00 +08:00
refactor: /rsshub/rss -> /rsshub/routes
This commit is contained in:
@@ -365,7 +365,7 @@
|
||||
title: '有新路由啦',
|
||||
docs: 'https://docs.rsshub.app/program-update.html#rsshub',
|
||||
source: ['', '/*tpath'],
|
||||
target: '/rsshub/rss',
|
||||
target: '/rsshub/routes',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -352,7 +352,7 @@
|
||||
title: '有新路由啦',
|
||||
docs: 'https://docs.rsshub.app/program-update.html#rsshub',
|
||||
source: ['', '/*tpath'],
|
||||
target: '/rsshub/rss',
|
||||
target: '/rsshub/routes',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -296,7 +296,7 @@ Partial routes have a strict anti-crawler policy, and can be configured to use p
|
||||
|
||||
Routes in `protected_route.js` will be protected using HTTP Basic Authentication.
|
||||
|
||||
When adding feeds using RSS readers with HTTP Basic Authentication support, authentication information is required, eg:http://usernam3:passw0rd@localhost:1200/protected/rsshub/rss.
|
||||
When adding feeds using RSS readers with HTTP Basic Authentication support, authentication information is required, eg:http://usernam3:passw0rd@localhost:1200/protected/rsshub/routes.
|
||||
|
||||
`HTTP_BASIC_AUTH_NAME`: Http basic authentication username, default to `usernam3`, please change asap
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ Refer to [#minecraft](/en/game.html#minecraft)
|
||||
|
||||
### New routes
|
||||
|
||||
<RouteEn path="/rsshub/rss" example="/rsshub/rss" />
|
||||
<RouteEn path="/rsshub/routes" example="/rsshub/routes" />
|
||||
|
||||
## sketch.com
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ RSSHub 支持 `memory` 和 `redis` 两种缓存方式
|
||||
|
||||
`protected_route.js` 内的路由将启用 HTTP Basic Authentication 认证
|
||||
|
||||
支持该认证协议的阅读器,在添加源地址时,需要在源地址前添加认证信息,例如:http://usernam3:passw0rd@127.0.0.1:1200/protected/rsshub/rss
|
||||
支持该认证协议的阅读器,在添加源地址时,需要在源地址前添加认证信息,例如:http://usernam3:passw0rd@127.0.0.1:1200/protected/rsshub/routes
|
||||
|
||||
`HTTP_BASIC_AUTH_NAME`: Http basic authentication 用户名,默认为 `usernam3`,请务必修改
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ pageClass: routes
|
||||
|
||||
### 有新路由啦
|
||||
|
||||
<Route author="DIYgod" example="/rsshub/rss" path="/rsshub/rss" radar="1"/>
|
||||
<Route author="DIYgod" example="/rsshub/routes" path="/rsshub/routes" radar="1"/>
|
||||
|
||||
## sketch.com
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ const config = require('./config').value;
|
||||
router.use('/(.*)', auth(config.authentication));
|
||||
|
||||
// RSSHub
|
||||
router.get('/rsshub/rss', require('./routes/rsshub/rss'));
|
||||
router.get('/rsshub/routes', require('./routes/rsshub/routes'));
|
||||
|
||||
module.exports = router;
|
||||
|
||||
@@ -25,7 +25,8 @@ router.get('/', require('./routes/index'));
|
||||
router.get('/test/:id', require('./routes/test'));
|
||||
|
||||
// RSSHub
|
||||
router.get('/rsshub/rss', require('./routes/rsshub/rss'));
|
||||
router.get('/rsshub/rss', require('./routes/rsshub/routes')); // 弃用
|
||||
router.get('/rsshub/routes', require('./routes/rsshub/routes'));
|
||||
|
||||
// 1draw
|
||||
router.get('/1draw/', require('./routes/1draw/index'));
|
||||
|
||||
Reference in New Issue
Block a user