mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-25 14:45:56 -05:00
Merge pull request #54 from mprasil/delete-admin
Implement delete-admin call
This commit is contained in:
commit
83da757dfb
@ -441,6 +441,11 @@ fn delete_cipher_post(uuid: String, headers: Headers, conn: DbConn) -> EmptyResu
|
|||||||
_delete_cipher_by_uuid(&uuid, &headers, &conn)
|
_delete_cipher_by_uuid(&uuid, &headers, &conn)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[post("/ciphers/<uuid>/delete-admin")]
|
||||||
|
fn delete_cipher_post_admin(uuid: String, headers: Headers, conn: DbConn) -> EmptyResult {
|
||||||
|
_delete_cipher_by_uuid(&uuid, &headers, &conn)
|
||||||
|
}
|
||||||
|
|
||||||
#[delete("/ciphers/<uuid>")]
|
#[delete("/ciphers/<uuid>")]
|
||||||
fn delete_cipher(uuid: String, headers: Headers, conn: DbConn) -> EmptyResult {
|
fn delete_cipher(uuid: String, headers: Headers, conn: DbConn) -> EmptyResult {
|
||||||
_delete_cipher_by_uuid(&uuid, &headers, &conn)
|
_delete_cipher_by_uuid(&uuid, &headers, &conn)
|
||||||
|
@ -41,6 +41,7 @@ pub fn routes() -> Vec<Route> {
|
|||||||
post_cipher,
|
post_cipher,
|
||||||
put_cipher,
|
put_cipher,
|
||||||
delete_cipher_post,
|
delete_cipher_post,
|
||||||
|
delete_cipher_post_admin,
|
||||||
delete_cipher,
|
delete_cipher,
|
||||||
delete_cipher_selected,
|
delete_cipher_selected,
|
||||||
delete_all,
|
delete_all,
|
||||||
|
Loading…
Reference in New Issue
Block a user