feat: esm standard for routes

This commit is contained in:
DIYgod
2024-03-02 03:25:26 +08:00
parent f0e09ee9e0
commit df57bb5d50
3035 changed files with 3040 additions and 3038 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { load } from 'cheerio';
import got from '@/utils/got';
import { parseDate } from '@/utils/parse-date';
module.exports = async (ctx) => {
export default async (ctx) => {
const link = `https://github.com/topics/${ctx.req.param('name')}`;
const { data, url } = await got(link, {
searchParams: new URLSearchParams(ctx.req.param('qs')),