commit d84d8d756f2687d7587a0190c46cafea4a99f6c8
parent 4fcdf336211b708fdc9802eaa800c1b1f8f2b7a6
Author: Miroslav Prasil <miroslav@prasil.info>
Date: Sun, 1 Jul 2018 12:43:11 +0100
Implement delete-admin call
Diffstat:
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,