rename pending tasks api endpoint to be more in line with others
This commit is contained in:
parent
5b7d86d42b
commit
86b3aa94e2
|
@ -74,9 +74,10 @@ class ProgressResponse(BaseModel):
|
|||
|
||||
|
||||
def setup_progress_api(app):
|
||||
app.add_api_route("/internal/pendingTasks", get_pending_tasks, methods=["GET"])
|
||||
app.add_api_route("/internal/pending-tasks", get_pending_tasks, methods=["GET"])
|
||||
return app.add_api_route("/internal/progress", progressapi, methods=["POST"], response_model=ProgressResponse)
|
||||
|
||||
|
||||
def get_pending_tasks():
|
||||
pending_tasks_ids = list(pending_tasks)
|
||||
pending_len = len(pending_tasks_ids)
|
||||
|
|
Loading…
Reference in New Issue