removed unnecesary app route
This commit is contained in:
parent
9057e1e293
commit
4a3bc0854b
@ -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:
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user