Fixed ip update endpoint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a0fad2a9cd
commit
9c22b67627
@ -6,6 +6,7 @@ from flask_classful import FlaskView
|
||||
class IPEndpoint(FlaskView):
|
||||
|
||||
def post(self):
|
||||
currentconsumer = request.json['ip']
|
||||
redis_client.set('currentConsumer', currentconsumer)
|
||||
consumer = redis_client.get('currentConsumer')
|
||||
consumer['Host'] = request.json['ip']
|
||||
redis_client.set('currentConsumer', consumer)
|
||||
pass
|
||||
|
Reference in New Issue
Block a user