manual check on config page

This commit is contained in:
Karl 2025-07-19 09:05:25 +01:00
parent b8eb97e8e2
commit 2ef573d63c

View File

@ -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):