()
| 263 | @blueprint.route("/heartbeat/log", methods=['POST']) |
| 264 | @pgCSRFProtect.exempt |
| 265 | def log_heartbeat(): |
| 266 | data = None |
| 267 | if hasattr(request.data, 'decode'): |
| 268 | data = request.data.decode('utf-8') |
| 269 | |
| 270 | if data != '': |
| 271 | data = json.loads(data) |
| 272 | |
| 273 | status, msg = log_server_heartbeat(data) |
| 274 | if status: |
| 275 | return make_json_response(data=msg, status=200) |
| 276 | else: |
| 277 | return make_json_response(data=msg, status=404) |
| 278 | |
| 279 | |
| 280 | @blueprint.route("/heartbeat/stop", methods=['POST']) |
nothing calls this directly
no test coverage detected