chore: 删除不再使用的文件并更新路由上下文以支持自定义字段
This commit is contained in:
@@ -18,15 +18,6 @@ route01.run = async (ctx) => {
|
||||
ctx.body = '01';
|
||||
return ctx;
|
||||
};
|
||||
app.use(
|
||||
'demo',
|
||||
async (ctx) => {
|
||||
ctx.body = '01';
|
||||
return ctx;
|
||||
},
|
||||
{ key: '01' },
|
||||
);
|
||||
|
||||
const route02 = new Route('demo', '02');
|
||||
route02.run = async (ctx) => {
|
||||
ctx.body = '02';
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import { createCert } from '@kevisual/router/sign';
|
||||
import { writeFileSync } from 'fs';
|
||||
const { key, cert } = createCert();
|
||||
|
||||
writeFileSync('https-key.pem', key);
|
||||
writeFileSync('https-cert.pem', cert);
|
||||
Reference in New Issue
Block a user