diff options
Diffstat (limited to 'src/wsgi.py')
-rwxr-xr-x | src/wsgi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wsgi.py b/src/wsgi.py index 15f9224..3c3d363 100755 --- a/src/wsgi.py +++ b/src/wsgi.py @@ -99,12 +99,12 @@ class EPAdd(CollectorResource): resp.text = CollectorResource.parse_error(decodedin) return - key = self._db.add(json_data) - resp.text = repr(key) + '\n' + keys = self._db.add(json_data) + resp.text = repr(keys) + '\n' def init(url_res_map, addr='', port=8000): - app = falcon.App() + app = falcon.App(cors_enable=True) for url, res in url_res_map: app.add_route(url, res) return make_server(addr, port, app) |