mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-16 04:09:03 +00:00
add empty /api/tasks endpoint
This commit is contained in:
parent
b77c01b8bb
commit
5d0195c278
@ -66,6 +66,7 @@ pub fn routes() -> Vec<rocket::Route> {
|
|||||||
put_device_token,
|
put_device_token,
|
||||||
put_clear_device_token,
|
put_clear_device_token,
|
||||||
post_clear_device_token,
|
post_clear_device_token,
|
||||||
|
get_tasks,
|
||||||
post_auth_request,
|
post_auth_request,
|
||||||
get_auth_request,
|
get_auth_request,
|
||||||
put_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
|
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)]
|
#[derive(Debug, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
struct AuthRequestRequest {
|
struct AuthRequestRequest {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user