feat: esm standard for routes
This commit is contained in:
@@ -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')),
|
||||
|
||||
Reference in New Issue
Block a user