public object Modules(Dictionary <string, string> data) { dynamic mod = new ExpandoObject(); if (data.TryGetValue("modules", out string t)) { mod.modules = mods.GetRegisteredModules(); } return(mod); }