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
@@ -6,7 +6,7 @@ const md = require('markdown-it')({
});
import { parseDate } from '@/utils/parse-date';
module.exports = async (ctx) => {
export default async (ctx) => {
const user = ctx.req.param('user');
const repo = ctx.req.param('repo');
const state = ctx.req.param('state') ?? 'open';