summaryrefslogtreecommitdiff
path: root/ick2/controllerapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/controllerapi.py')
-rw-r--r--ick2/controllerapi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ick2/controllerapi.py b/ick2/controllerapi.py
index 4ed14c1..cf80400 100644
--- a/ick2/controllerapi.py
+++ b/ick2/controllerapi.py
@@ -38,7 +38,7 @@ class ControllerAPI:
{
'method': 'GET',
'path': '/version',
- 'callback': self.get_version,
+ 'callback': self.GET(self.get_version),
},
{
'method': 'POST',
@@ -67,9 +67,6 @@ class ControllerAPI:
},
]
- def get_version(self, *args, **kwargs):
- return OK({'version': ick2.__version__})
-
def GET(self, callback): # pragma: no cover
def wrapper(content_type, body, **kwargs):
try:
@@ -108,6 +105,9 @@ class ControllerAPI:
return OK(body)
return wrapper
+ def get_version(self, **kwargs):
+ return {'version': ick2.__version__}
+
def get_projects(self):
return {
'projects': self._state.get_projects(),