Swap back from config to commands, like the odin data adapter now does: https://github.com/odin-detector/odin-data/blob/eced847000ebd5d8d84a740de4f4007cb30c9374/python/src/odin_data/control/odin_data_controller.py#L183
It will be a bit simpler than that for xspress because there we have to query the FP plugins to see what commands they have. Here we can just statically define them. The API is:
- GET "command/allowed" -> return a list of command name strings
- PUT "command/execute" with the value as the string command name -> run that command
Swap back from config to commands, like the odin data adapter now does: https://github.com/odin-detector/odin-data/blob/eced847000ebd5d8d84a740de4f4007cb30c9374/python/src/odin_data/control/odin_data_controller.py#L183
It will be a bit simpler than that for xspress because there we have to query the FP plugins to see what commands they have. Here we can just statically define them. The API is: