Renamed Resource to View, and allow custom root links

This commit is contained in:
Joel Collins 2020-01-14 11:41:56 +00:00
parent 234ebc1cbb
commit a329b9197b
18 changed files with 90 additions and 67 deletions

View file

@ -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
"""