from relay_api.api.server import server
from relay_api.conf.config import relays
import relay_api.api.server as api


@server.route("/relay-api/relays", methods=["GET"])
def get_relays():
    return api.get_relays(relays)


@server.route("/relay-api/relays/<int:relay_id>", methods=["GET"])
def get_relay(relay_id):
    return api.get_relay(relays, relay_id)

Add the main file