]> git.mxchange.org Git - flightgear.git/commit
allow binding of arguments for fg-commands thru run.cgi
authorTorsten Dreyer <torsten@t3r.de>
Mon, 10 Mar 2014 21:58:52 +0000 (22:58 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Mon, 10 Mar 2014 21:58:52 +0000 (22:58 +0100)
commit7c2ce9acf757b37f01569a7eb5948485a6d3469d
tree96a2a117d7d6ff9f5f96e89aacbe9b1c173afa4e
parentf07771f3d5243e2058b2a3a7c6092f94a46921fa
allow binding of arguments for fg-commands thru run.cgi

to run a fg-command with args, POST run.cgi?value=my-command
and post the args node as JSON content like this:
{
   name: '',
   children: [
     {
       name: 'property',
       index: 0,
       value: 'first-value is here'
     },
     {
       name: 'property',
       index: 1,
       value: 'first-value is here'
     }
   ]
}
or whatever arguments the requested command takes
src/Network/http/RunUriHandler.cxx