generated from nathanwoodburn/python-webserver-template
fix: Remove test route
All checks were successful
Build Docker / BuildImage (push) Successful in 1m14s
All checks were successful
Build Docker / BuildImage (push) Successful in 1m14s
This commit is contained in:
21
server.py
21
server.py
@@ -342,27 +342,6 @@ def api_add_notification(token: str):
|
||||
|
||||
|
||||
# endregion
|
||||
@app.route("/test")
|
||||
def test():
|
||||
"""
|
||||
Test route to check if the server is running.
|
||||
"""
|
||||
user = request.args.get("user", "nathan.woodburn")
|
||||
domain_data = {
|
||||
"blocks": 1008,
|
||||
"time": f"{1008 // 144} days" # Assuming 144 blocks per day
|
||||
}
|
||||
notification = {
|
||||
"username": "nathan.woodburn",
|
||||
"blocks": 1008,
|
||||
"type": "telegram",
|
||||
"id": "f8b5ad1222b9fe636911421147392385",
|
||||
"user_name": "nathan.woodburn"
|
||||
}
|
||||
handle_alert("woodburn", notification, domain_data)
|
||||
|
||||
|
||||
return jsonify({"message": "Server is running"})
|
||||
|
||||
# region Error Catching
|
||||
# 404 catch all
|
||||
|
||||
Reference in New Issue
Block a user