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
@@ -5,7 +5,7 @@ import md5 from '@/utils/md5';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
module.exports = async (ctx) => {
export default async (ctx) => {
const { user, repo, period } = ctx.req.param();
const periods = ['daily', 'halfweekly', 'weekly', 'monthly'];