mirror of
https://github.com/karl0ss/ai_image_frame_server.git
synced 2025-08-16 06:18:28 +01:00
13 lines
328 B
Python
13 lines
328 B
Python
from flask import Blueprint, jsonify
|
|
from libs.comfyui import cancel_current_job, get_queue_details
|
|
|
|
bp = Blueprint("job_routes", __name__)
|
|
|
|
@bp.route("/cancel", methods=["GET"])
|
|
def cancel_job():
|
|
return cancel_current_job()
|
|
|
|
@bp.route("/api/queue", methods=["GET"])
|
|
def api_queue():
|
|
return jsonify(get_queue_details())
|