Island: Don't return IP addresses from Root resource's GET

This commit is contained in:
Shreya Malviya 2022-08-05 13:17:00 +05:30
parent 3f14b96b71
commit 4095e130f9
1 changed files with 0 additions and 5 deletions

View File

@ -1,5 +1,4 @@
import logging
from typing import Sequence
from flask import jsonify, make_response, request
@ -15,9 +14,6 @@ class Root(AbstractResource):
urls = ["/api"]
def __init__(self, local_ip_addresses: Sequence[str]):
self._local_ips = local_ip_addresses
def get(self, action=None):
if not action:
action = request.args.get("action")
@ -32,7 +28,6 @@ class Root(AbstractResource):
@jwt_required
def get_server_info(self):
return jsonify(
ip_addresses=self._local_ips,
mongo=str(mongo.db),
completed_steps=get_completed_steps(),
)