add second ping route on /
@@ -27,10 +27,9 @@ import listeners.job
logger = get_logger('api')
ns = api.namespace('ping', description='Health checks')
-@ns.route('/')
-@api.doc(security=[])
-class Ping(Resource):
- def get(self):
+@app.route('/')
+@app.route('/ping')
+def ping():
return jsonify({'status': 200})
class ClientManager(socketio.base_manager.BaseManager):
