refactor: /rsshub/rss -> /rsshub/routes

This commit is contained in:
DIYgod
2020-03-01 12:59:04 +08:00
parent 16f477c842
commit 8953a4d52f
9 changed files with 9 additions and 8 deletions

View File

@@ -365,7 +365,7 @@
title: '有新路由啦', title: '有新路由啦',
docs: 'https://docs.rsshub.app/program-update.html#rsshub', docs: 'https://docs.rsshub.app/program-update.html#rsshub',
source: ['', '/*tpath'], source: ['', '/*tpath'],
target: '/rsshub/rss', target: '/rsshub/routes',
}, },
], ],
}, },

View File

@@ -352,7 +352,7 @@
title: '有新路由啦', title: '有新路由啦',
docs: 'https://docs.rsshub.app/program-update.html#rsshub', docs: 'https://docs.rsshub.app/program-update.html#rsshub',
source: ['', '/*tpath'], source: ['', '/*tpath'],
target: '/rsshub/rss', target: '/rsshub/routes',
}, },
], ],
}, },

View File

@@ -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. 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, eghttp://usernam3:passw0rd@localhost:1200/protected/rsshub/rss. When adding feeds using RSS readers with HTTP Basic Authentication support, authentication information is required, eghttp://usernam3:passw0rd@localhost:1200/protected/rsshub/routes.
`HTTP_BASIC_AUTH_NAME`: Http basic authentication username, default to `usernam3`, please change asap `HTTP_BASIC_AUTH_NAME`: Http basic authentication username, default to `usernam3`, please change asap

View File

@@ -147,7 +147,7 @@ Refer to [#minecraft](/en/game.html#minecraft)
### New routes ### New routes
<RouteEn path="/rsshub/rss" example="/rsshub/rss" /> <RouteEn path="/rsshub/routes" example="/rsshub/routes" />
## sketch.com ## sketch.com

View File

@@ -300,7 +300,7 @@ RSSHub 支持 `memory` 和 `redis` 两种缓存方式
`protected_route.js` 内的路由将启用 HTTP Basic Authentication 认证 `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`,请务必修改 `HTTP_BASIC_AUTH_NAME`: Http basic authentication 用户名,默认为 `usernam3`,请务必修改

View File

@@ -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 ## sketch.com

View File

@@ -6,6 +6,6 @@ const config = require('./config').value;
router.use('/(.*)', auth(config.authentication)); router.use('/(.*)', auth(config.authentication));
// RSSHub // RSSHub
router.get('/rsshub/rss', require('./routes/rsshub/rss')); router.get('/rsshub/routes', require('./routes/rsshub/routes'));
module.exports = router; module.exports = router;

View File

@@ -25,7 +25,8 @@ router.get('/', require('./routes/index'));
router.get('/test/:id', require('./routes/test')); router.get('/test/:id', require('./routes/test'));
// RSSHub // 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 // 1draw
router.get('/1draw/', require('./routes/1draw/index')); router.get('/1draw/', require('./routes/1draw/index'));