feat: add metadata and middleware add preivew middleware

This commit is contained in:
2025-02-26 11:26:52 +08:00
parent 986b5687c4
commit 1c3e65df8a
4 changed files with 100 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ import { readFileSync } from 'fs';
const app = new App({
serverOptions: {
cors: {},
isHTTPS: true,
httpType: 'https',
httpsKey: readFileSync('https-key.pem', 'utf8'),
httpsCert: readFileSync('https-cert.pem', 'utf-8'),
},