mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:59:54 +08:00
12 lines
303 B
JavaScript
12 lines
303 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', require('./routes/rsshub/routes'));
|
|
|
|
module.exports = router;
|