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
|
||||
from openflexure_microscope.common.flask_labthings.extensions import BaseExtension
|
||||
from openflexure_microscope.common.flask_labthings.decorators import (
|
||||
ThingAction,
|
||||
|
|
@ -77,7 +77,7 @@ static_form = {
|
|||
|
||||
|
||||
@ThingProperty
|
||||
class TestAPIView(Resource):
|
||||
class TestAPIView(View):
|
||||
def get(self):
|
||||
global val_int
|
||||
val_int += 1
|
||||
|
|
@ -85,7 +85,7 @@ class TestAPIView(Resource):
|
|||
|
||||
|
||||
@ThingAction
|
||||
class TestDoAPIView(Resource):
|
||||
class TestDoAPIView(View):
|
||||
def post(self):
|
||||
global val_int
|
||||
val_int += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue