feat: esm standard for routes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import got from '@/utils/got';
|
||||
import { config } from '@/config';
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
export default async (ctx) => {
|
||||
if (!config.github || !config.github.access_token) {
|
||||
throw new Error('GitHub follower RSS is disabled due to the lack of <a href="https://docs.rsshub.app/install/#pei-zhi-bu-fen-rss-mo-kuai-pei-zhi">relevant config</a>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user