mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
39d3e88424
* feat(route): rsshub en routes * fix: add radar.js
12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
const Router = require('@koa/router');
|
|
const router = new Router();
|
|
const auth = require('koa-basic-auth');
|
|
const config = require('./config').value;
|
|
|
|
router.use('/(.*)', auth(config.authentication));
|
|
|
|
// RSSHub
|
|
router.get('/rsshub/routes/:lang?', require('./v2/rsshub/routes'));
|
|
|
|
module.exports = router;
|