mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-28 13:58:26 +08:00
* fix(route): shu 上海大学
* Optimize code and update documentation
- shu/index.js & shu/jwc.js
- use @/utils/parse-date to parse date
- change "item.description" from text to HTML
- change "url.resolve" (deprecated) to "new URL"
- change the way of mapping "ctx.params.type" to link
- now it accepts more route types
- university.md
- update doc for new types
- router.js
- add an alias because the website changed its host
* Update lib/routes/universities/shu/index.js
* Update lib/routes/universities/shu/jwc.js
* Update docs/university.md
* refactor: migrate to v2
---------
6 lines
257 B
JavaScript
6 lines
257 B
JavaScript
module.exports = (router) => {
|
|
router.get('/:type?', require('./index'));
|
|
router.get('/jwc/:type?', require('./jwb')); // TODO: deprecated, remove this line when someone update this file next time
|
|
router.get('/jwb/:type?', require('./jwb'));
|
|
};
|