mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-30 00:00:43 -04:00
Add API to fetch download queue
This commit is contained in:
@@ -129,5 +129,10 @@ class APIRouter < Router
|
|||||||
send_json env, {"error" => e.message}.to_json
|
send_json env, {"error" => e.message}.to_json
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
get "/api/admin/mangadex/queue" do |env|
|
||||||
|
jobs = @context.queue.get_all
|
||||||
|
send_json env, jobs.to_json
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user