Skip to content

Commit

Permalink
refactor: /rsshub/rss -> /rsshub/routes
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Mar 1, 2020
1 parent 16f477c commit 8953a4d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/radar-rules-next.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
title: '有新路由啦',
docs: 'https://docs.rsshub.app/program-update.html#rsshub',
source: ['', '/*tpath'],
target: '/rsshub/rss',
target: '/rsshub/routes',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion assets/radar-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
title: '有新路由啦',
docs: 'https://docs.rsshub.app/program-update.html#rsshub',
source: ['', '/*tpath'],
target: '/rsshub/rss',
target: '/rsshub/routes',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion docs/en/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/en/program-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ RSSHub 支持 `memory` 和 `redis` 两种缓存方式

`protected_route.js` 内的路由将启用 HTTP Basic Authentication 认证

支持该认证协议的阅读器,在添加源地址时,需要在源地址前添加认证信息,例如:http://usernam3:[email protected]:1200/protected/rsshub/rss
支持该认证协议的阅读器,在添加源地址时,需要在源地址前添加认证信息,例如:http://usernam3:[email protected]:1200/protected/rsshub/routes

`HTTP_BASIC_AUTH_NAME`: Http basic authentication 用户名,默认为 `usernam3`,请务必修改

Expand Down
2 changes: 1 addition & 1 deletion docs/program-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/protected_router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
3 changes: 2 additions & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
File renamed without changes.

0 comments on commit 8953a4d

Please sign in to comment.