mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2026-04-18 02:18:08 +00:00
19 lines
458 B
TypeScript
19 lines
458 B
TypeScript
import { CoolMqttServe } from './mqtt';
|
|
import { Configuration } from '@midwayjs/decorator';
|
|
import * as DefaultConfig from './config/config.default';
|
|
import { IMidwayContainer } from '@midwayjs/core';
|
|
|
|
@Configuration({
|
|
namespace: 'cool:iot',
|
|
importConfigs: [
|
|
{
|
|
default: DefaultConfig,
|
|
},
|
|
],
|
|
})
|
|
export class CoolIotConfiguration {
|
|
async onReady(container: IMidwayContainer) {
|
|
(await container.getAsync(CoolMqttServe)).init();
|
|
}
|
|
}
|