From 2697e6bc739962743270610770e7ef4fae34e678 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 5 Jan 2019 21:26:06 +0200 Subject: Test: add /hello to test CI/CD --- effiapi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/effiapi b/effiapi index e8a4cf7..154d198 100755 --- a/effiapi +++ b/effiapi @@ -184,6 +184,11 @@ class API: def _add_routes(self, bottleapp): routes = [ + { + 'method': 'GET', + 'path': '/hello', + 'callback': self._call(self._show_hello), + }, { 'method': 'GET', 'path': '/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) -- cgit v1.2.1