MCPcopy Create free account
hub / github.com/6174/comflowyspace / ApiGetAllConfig

Function ApiGetAllConfig

apps/node/src/routes/api/bootstrap.ts:267–285  ·  view source on GitHub ↗
(req: Request, res: Response)

Source from the content-addressed store, hash-verified

265}
266
267export 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
287export async function ApiSetRunConfig(req: Request, res: Response) {
288 try {

Callers

nothing calls this directly

Calls 2

getRunConfigMethod · 0.80
getSetupConfigMethod · 0.80

Tested by

no test coverage detected