Add API to set the stage

This commit is contained in:
samuelmcdermott 2020-10-11 01:01:21 +01:00
parent a1f27b0091
commit 79f3104409
2 changed files with 20 additions and 0 deletions

View file

@ -39,6 +39,11 @@ _actions = {
"view_class": stage.ZeroStageAPI,
"conditions": True,
},
"setStage": {
"rule" : "/stage/set/",
"view_class": stage.SetStageAPI,
"conditions": True,
},
"shutdown": {
"rule": "/system/shutdown/",
"view_class": system.ShutdownAPI,