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
@@ -18,7 +18,7 @@ const typeDict = {
},
};
module.exports = async (ctx) => {
export default async (ctx) => {
const user = ctx.req.param('user');
const repo = ctx.req.param('repo');
const number = ctx.req.param('number') && isNaN(Number.parseInt(ctx.req.param('number'))) ? 1 : Number.parseInt(ctx.req.param('number'));