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

12 lines
271 B
Python
Raw Normal View History

2020-04-17 16:51:26 +02:00
from redisclient import redis_client
from flask import jsonify
from flask_classful import FlaskView
class IPEndpoint(FlaskView):
def post(self):
2020-04-17 17:10:16 +02:00
currentconsumer = request.json['ip']
redis_client.set('currentConsumer', currentconsumer)
2020-04-17 16:54:37 +02:00
pass