13 lines
328 B
Python
Raw Permalink Normal View History

2025-08-12 14:15:23 +01:00
from flask import Blueprint, jsonify
from libs.comfyui import cancel_current_job, get_queue_details
2025-06-24 13:01:39 +01:00
bp = Blueprint("job_routes", __name__)
@bp.route("/cancel", methods=["GET"])
def cancel_job():
return cancel_current_job()
2025-08-12 14:15:23 +01:00
@bp.route("/api/queue", methods=["GET"])
def api_queue():
return jsonify(get_queue_details())