vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 83da757dfb3f4bdfb458b5cf61b5d2d630f87ef2
parent 4fcdf336211b708fdc9802eaa800c1b1f8f2b7a6
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sun,  1 Jul 2018 14:45:48 +0200

Merge pull request #54 from mprasil/delete-admin

Implement delete-admin call
Diffstat:
Msrc/api/core/ciphers.rs | 5+++++
Msrc/api/core/mod.rs | 1+
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs @@ -441,6 +441,11 @@ fn delete_cipher_post(uuid: String, headers: Headers, conn: DbConn) -> EmptyResu _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>")] fn delete_cipher(uuid: String, headers: Headers, conn: DbConn) -> EmptyResult { _delete_cipher_by_uuid(&uuid, &headers, &conn) diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs @@ -41,6 +41,7 @@ pub fn routes() -> Vec<Route> { post_cipher, put_cipher, delete_cipher_post, + delete_cipher_post_admin, delete_cipher, delete_cipher_selected, delete_all,