base module

This commit is contained in:
2025-03-10 10:21:14 +08:00
parent 479eaccf57
commit b966ea68f2
40 changed files with 1594 additions and 73 deletions

View File

@@ -1,8 +1,19 @@
import { App } from '@kevisual/router';
import { useContextKey } from '@kevisual/use-config/context';
import { httpsConfig } from './modules/config.ts';
const init = () => {
return new App();
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);