(req: Request, res: Response)
| 265 | } |
| 266 | |
| 267 | export async function ApiGetAllConfig(req: Request, res: Response) { |
| 268 | try { |
| 269 | const runConfig = appConfigManager.getRunConfig(); |
| 270 | const setupConfig = appConfigManager.getSetupConfig(); |
| 271 | res.send({ |
| 272 | success: true, |
| 273 | data: { |
| 274 | runConfig: runConfig, |
| 275 | [CONFIG_KEYS.appSetupConfig]: setupConfig |
| 276 | } |
| 277 | }); |
| 278 | } catch (err: any) { |
| 279 | logger.error(err.message + ":" + err.stack); |
| 280 | res.send({ |
| 281 | success: false, |
| 282 | error: err.message |
| 283 | }) |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | export async function ApiSetRunConfig(req: Request, res: Response) { |
| 288 | try { |
nothing calls this directly
no test coverage detected