diff --git a/ktvmanager/main.py b/ktvmanager/main.py index 836fcfa..141c234 100644 --- a/ktvmanager/main.py +++ b/ktvmanager/main.py @@ -28,6 +28,12 @@ def create_app(): # Register blueprints 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 @app.errorhandler(404) def not_found(error):