From 4a3bc0854b4600a756403514a168f833202ea1b2 Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Fri, 22 Dec 2023 08:54:53 -0500 Subject: [PATCH] removed unnecesary app route --- app/app.py | 9 +-------- app/src/__init__.py | 5 ++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/app/app.py b/app/app.py index 5251df9..f7e3943 100644 --- a/app/app.py +++ b/app/app.py @@ -3,7 +3,7 @@ import json from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException -from src import create_wallet, read_rpc_config, generate_seed, list_wallets +from src import create_wallet, read_rpc_config app = Flask(__name__, static_folder="static") @@ -20,13 +20,6 @@ def handle_create_wallet(): return jsonify({"message": result}) -@app.route("/generate_seed", methods=["POST"]) -def handle_generate_seed(): - seed_length = request.form["seedLength"] - result = generate_seed(seed_length) - return jsonify({"seed": result}) - - @app.route("/wallets", methods=["GET"]) def list_wallets(): try: diff --git a/app/src/__init__.py b/app/src/__init__.py index eefcae1..7870c4f 100644 --- a/app/src/__init__.py +++ b/app/src/__init__.py @@ -1,6 +1,5 @@ from .read_rpc_config import read_rpc_config from .create_wallet import create_wallet -from .generate_seed import generate_seed -from .list_wallets import list_wallets -__all__ = ["read_rpc_config", "create_wallet", "generate_seed", "list_wallets"] + +__all__ = ["read_rpc_config", "create_wallet"]