How to redirect to user to container webapp but show different address

Solution
@app.route("/")
def random_url(random_id):
    if random_id not in global_containers:
        return "URL doesn't exist"

    r = requests.get("http://localhost:" + str(global_containers[random_id].host_port))
    return r.content