This repository has been archived on 2020-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
producer-endpoint/endpoints.py
Scharnitzky Donát 9c22b67627
All checks were successful
continuous-integration/drone/push Build is passing
Fixed ip update endpoint
2020-04-21 19:42:47 +02:00

13 lines
320 B
Python

from redisclient import redis_client
from flask import jsonify
from flask_classful import FlaskView
class IPEndpoint(FlaskView):
def post(self):
consumer = redis_client.get('currentConsumer')
consumer['Host'] = request.json['ip']
redis_client.set('currentConsumer', consumer)
pass