2022-08-20 13:36:46 +01:00
|
|
|
import { injectable } from "tsyringe";
|
2022-10-19 17:27:45 +01:00
|
|
|
import { ICwxConfig } from "../models/IConfig";
|
2022-08-20 13:36:46 +01:00
|
|
|
|
|
|
|
@injectable()
|
2022-10-19 17:27:45 +01:00
|
|
|
export class CwxConfigHandler
|
2022-08-20 13:36:46 +01:00
|
|
|
{
|
2022-10-19 17:27:45 +01:00
|
|
|
private config: ICwxConfig;
|
2022-08-20 13:36:46 +01:00
|
|
|
|
|
|
|
constructor()
|
|
|
|
{
|
|
|
|
this.config = require("../config/config.json");
|
|
|
|
}
|
|
|
|
|
2022-10-19 17:27:45 +01:00
|
|
|
public getConfig(): ICwxConfig
|
2022-08-20 13:36:46 +01:00
|
|
|
{
|
|
|
|
return this.config;
|
|
|
|
}
|
|
|
|
}
|