To add muc component without restarting the prosody server done the following code then trying to execute it using rest api. but muc component not able to loading .
--------------code begin---------------
localh hm = require "core.hostmanager";
local mm = require "core.modulemanager";
host= "muc.example.co";
hm.activate(host);
local key= "component_module";
local value = "muc";
cmg._M.set(host, key, value);
mm.load_modules_for_host(host);
-----code end-----------------
How can we enable muc service point without reloading the prosody server.