diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-01-05 21:26:06 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-01-05 21:26:06 +0200 |
commit | 2697e6bc739962743270610770e7ef4fae34e678 (patch) | |
tree | a7ac7a0ce37516e66d0a082efd2702bd4a3829f6 /effiapi | |
parent | 372098febab2fb000b1c2f4c3340f242e7e65e57 (diff) | |
download | effi-reg-2697e6bc739962743270610770e7ef4fae34e678.tar.gz |
Test: add /hello to test CI/CD
Diffstat (limited to 'effiapi')
-rwxr-xr-x | effiapi | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |