summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-01-05 21:26:06 +0200
committerLars Wirzenius <liw@liw.fi>2019-01-05 21:26:06 +0200
commit2697e6bc739962743270610770e7ef4fae34e678 (patch)
treea7ac7a0ce37516e66d0a082efd2702bd4a3829f6
parent372098febab2fb000b1c2f4c3340f242e7e65e57 (diff)
downloadeffi-reg-2697e6bc739962743270610770e7ef4fae34e678.tar.gz
Test: add /hello to test CI/CD
-rwxr-xr-xeffiapi8
1 files changed, 8 insertions, 0 deletions
diff --git a/effiapi b/effiapi
index e8a4cf7..154d198 100755
--- a/effiapi
+++ b/effiapi
@@ -186,6 +186,11 @@ class API:
routes = [
{
'method': 'GET',
+ 'path': '/hello',
+ 'callback': self._call(self._show_hello),
+ },
+ {
+ 'method': 'GET',
'path': '/status',
'callback': self._call(self._show_status),
},
@@ -239,6 +244,9 @@ class API:
return None
return w[1]
+ def _show_hello(self):
+ return response(200, None, {"greeting": "hello, world\n"})
+
def _show_status(self):
status = self._muck.status()
return response(200, None, status)