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