Files
assistant-center/src/app.ts
2025-03-10 10:21:14 +08:00

20 lines
445 B
TypeScript

import { App } from '@kevisual/router';
import { useContextKey } from '@kevisual/use-config/context';
import { httpsConfig } from './modules/config.ts';
const init = () => {
const app = new App({
serverOptions: {
path: '/client/router',
httpType: 'https',
httpsCert: httpsConfig.cert.toString(),
httpsKey: httpsConfig.key.toString(),
},
});
return app;
};
export const app = useContextKey('app', init);