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 0a4dbaf3073672312aaad55b28cb16b6f905d017
parent d613fa1e689f4cd308ba89d37d14831508d46002
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Fri, 19 Oct 2018 01:34:32 +0200

Merge pull request #226 from janost/fix-sync-without-query-string

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,