Renamed Resource to View, and allow custom root links
This commit is contained in:
parent
234ebc1cbb
commit
a329b9197b
18 changed files with 90 additions and 67 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from openflexure_microscope.common.flask_labthings.resource import Resource
|
||||
from openflexure_microscope.common.flask_labthings.view import View
|
||||
import subprocess
|
||||
import os
|
||||
from sys import platform
|
||||
|
|
@ -18,7 +18,7 @@ def is_raspberrypi(raise_on_errors=False):
|
|||
|
||||
|
||||
@ThingAction
|
||||
class ShutdownAPI(Resource):
|
||||
class ShutdownAPI(View):
|
||||
"""
|
||||
Attempt to shutdown the device
|
||||
"""
|
||||
|
|
@ -34,7 +34,7 @@ class ShutdownAPI(Resource):
|
|||
|
||||
|
||||
@ThingAction
|
||||
class RebootAPI(Resource):
|
||||
class RebootAPI(View):
|
||||
"""
|
||||
Attempt to reboot the device
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue