Skip to content

Commit

Permalink
adding error 404 handler page
Browse files Browse the repository at this point in the history
  • Loading branch information
SatyamSingh8306 committed Nov 10, 2024
1 parent ad0c140 commit fc3f06c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ def buy_stock():
stock_name = request.form['name']
# Add logic to interact with smart contract
return jsonify({'status': 'Stock purchased successfully'})
@app.errorhandler(404)
def error(e):
return render_template("error_404.html")

0 comments on commit fc3f06c

Please sign in to comment.