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
Kovács Bence c6af41610c
All checks were successful
continuous-integration/drone/push Build is passing
get ip
2020-04-17 17:10:16 +02:00

14 lines
371 B
Python

from redisclient import redis_client
from flask import jsonify
from flask_classful import FlaskView
class IPEndpoint(FlaskView):
def post(self):
"""Ez kell neked"""
#{"ip": "172.20.lofasz", "uuid" : "nagy nigger pélók"} példa
currentconsumer = request.json['ip']
redis_client.set('currentConsumer', currentconsumer)
pass