diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-23 13:27:22 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-23 15:21:39 +0300 |
commit | 9d4e01e2df83a108c2c44cc4471666b5cecf4c36 (patch) | |
tree | 272049de3e1e30f67aee4ce6304c92e349bccea0 /ick2/workerapi.py | |
parent | de851333b5a0c90aa8cb7fb75e188b9e391b582d (diff) | |
download | ick2-9d4e01e2df83a108c2c44cc4471666b5cecf4c36.tar.gz |
Change: all actions must have a "where"
Diffstat (limited to 'ick2/workerapi.py')
-rw-r--r-- | ick2/workerapi.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ick2/workerapi.py b/ick2/workerapi.py index 2e53758..7f2f0b7 100644 --- a/ick2/workerapi.py +++ b/ick2/workerapi.py @@ -21,30 +21,6 @@ class WorkerAPI(ick2.ResourceApiBase): # pragma: no cover def __init__(self, state): super().__init__('workers', state) - def get_routes(self, path): - return [ - { - 'method': 'POST', - 'path': path, - 'callback': self.POST(self.create), - }, - { - 'method': 'GET', - 'path': path, - 'callback': self.GET(self.list), - }, - { - 'method': 'GET', - 'path': '{}/<name>'.format(path), - 'callback': self.GET(self.show), - }, - { - 'method': 'DELETE', - 'path': '{}/<name>'.format(path), - 'callback': self.DELETE(self.delete), - }, - ] - def get_resource_name(self, resource): return resource['worker'] |