mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
modules/console: Add a parse alternative to fed event noparse argument.
This commit is contained in:
parent
83d4ce49b0
commit
54e5b2273f
1 changed files with 6 additions and 0 deletions
|
@ -11538,6 +11538,12 @@ console_cmd__fed__event(opt &out, const string_view &line)
|
|||
return true;
|
||||
}
|
||||
|
||||
if(has(op, "parse"))
|
||||
{
|
||||
out << json::object{request.in.content} << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
const json::object &response
|
||||
{
|
||||
request
|
||||
|
|
Loading…
Reference in a new issue