From 57bdab15504ff874f0ad6cb93f03292a70e4b365 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com> Date: Sun, 14 Dec 2025 15:32:21 +0100 Subject: [PATCH] add empty /api/tasks endpoint (#6557) --- src/api/core/accounts.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index 672000b3..f5c32acb 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -66,6 +66,7 @@ pub fn routes() -> Vec { put_device_token, put_clear_device_token, post_clear_device_token, + get_tasks, post_auth_request, get_auth_request, put_auth_request, @@ -1445,6 +1446,14 @@ async fn post_clear_device_token(device_id: DeviceId, conn: DbConn) -> EmptyResu put_clear_device_token(device_id, conn).await } +#[get("/tasks")] +fn get_tasks(_client_headers: ClientHeaders) -> JsonResult { + Ok(Json(json!({ + "data": [], + "object": "list" + }))) +} + #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] struct AuthRequestRequest {