MXS-1220: Add execution of module commands to REST API
The module command self links now point to an endpoint that executes the module command. Depending on the type of the module command, either a GET or a POST request must be made.
This commit is contained in:
@ -154,7 +154,7 @@ MXS_MODULE* MXS_CREATE_MODULE()
|
||||
{ MODULECMD_ARG_STRING, "Password of the user"}
|
||||
};
|
||||
|
||||
modulecmd_register_command("cdc", "add_user", cdc_add_new_user, 3, args);
|
||||
modulecmd_register_command("cdc", "add_user", MODULECMD_TYPE_ACTIVE, cdc_add_new_user, 3, args);
|
||||
|
||||
static MXS_AUTHENTICATOR MyObject =
|
||||
{
|
||||
|
Reference in New Issue
Block a user