Fixed wrong endpoint name
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-04-22 05:05:16 +02:00
parent 265c7f6e85
commit 20bee844ef

View File

@ -6,6 +6,8 @@ from flask_classful import FlaskView
class IPEndpoint(FlaskView): class IPEndpoint(FlaskView):
route_base = '/ip'
def post(self): def post(self):
consumer = json.loads(redis_client.get('currentConsumer')) consumer = json.loads(redis_client.get('currentConsumer'))
consumer['Host'] = request.json['ip'] consumer['Host'] = request.json['ip']