This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/resources/allocate/definitions.py
Cayo Puigdefabregas 0415b7efb9 deallocate
2020-11-21 13:17:23 +01:00

15 lines
379 B
Python

from ereuse_devicehub.resources.action import schemas
from teal.resource import Resource
from ereuse_devicehub.resources.allocate.views import AllocateView, DeallocateView
class AllocateDef(Resource):
VIEW = AllocateView
SCHEMA = schemas.Allocate
AUTH = True
class DeallocateDef(Resource):
VIEW = DeallocateView
SCHEMA = schemas.Deallocate
AUTH = True