Files
cli/assistant/src/app.ts
2025-04-26 03:15:11 +08:00

14 lines
390 B
TypeScript

import { App } from '@kevisual/router';
import { HttpsPem } from '@/module/assistant/https/sign.ts';
import { assistantConfig } from '@/config.ts';
export { assistantConfig };
const httpsPem = new HttpsPem(assistantConfig);
export const app = new App({
serverOptions: {
path: '/client/router',
httpType: 'https',
httpsCert: httpsPem.cert,
httpsKey: httpsPem.key,
},
});