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 daa66b08dc1c21f38710f8791d45f188702ccd17
parent d613fa1e689f4cd308ba89d37d14831508d46002
Author: janost <janost@users.noreply.github.com>
Date:   Fri, 19 Oct 2018 00:54:40 +0200

Fix /sync without query string

Diffstat:
Msrc/api/core/ciphers.rs | 7+++++++
Msrc/api/core/mod.rs | 1+
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs @@ -53,6 +53,13 @@ fn sync(data: SyncData, headers: Headers, conn: DbConn) -> JsonResult { }))) } +#[get("/sync")] +fn sync_no_query(headers: Headers, conn: DbConn) -> JsonResult { + let sync_data = SyncData { + excludeDomains: false, + }; + sync(sync_data, headers, conn) +} #[get("/ciphers")] fn get_ciphers(headers: Headers, conn: DbConn) -> JsonResult { diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs @@ -30,6 +30,7 @@ pub fn routes() -> Vec<Route> { prelogin, sync, + sync_no_query, get_ciphers, get_cipher,