manual check on config page
This commit is contained in:
parent
b8eb97e8e2
commit
2ef573d63c
@ -28,6 +28,12 @@ def create_app():
|
|||||||
# Register blueprints
|
# Register blueprints
|
||||||
app.register_blueprint(api_blueprint)
|
app.register_blueprint(api_blueprint)
|
||||||
|
|
||||||
|
@app.route('/check-expiry', methods=['POST'])
|
||||||
|
def check_expiry():
|
||||||
|
"""Manually triggers the expiry notification check."""
|
||||||
|
send_expiry_notifications(app)
|
||||||
|
return jsonify({"message": "Expiry notification check triggered."})
|
||||||
|
|
||||||
# Error handlers
|
# Error handlers
|
||||||
@app.errorhandler(404)
|
@app.errorhandler(404)
|
||||||
def not_found(error):
|
def not_found(error):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user