generated from tailored/router-db-template
base module
This commit is contained in:
13
src/app.ts
13
src/app.ts
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user