diff options
author | janost <[email protected]> | 2018-10-19 00:54:40 +0200 |
---|---|---|
committer | janost <[email protected]> | 2018-10-19 00:54:40 +0200 |
commit | daa66b08dc1c21f38710f8791d45f188702ccd17 (patch) | |
tree | 000a3f5a39424cb5cc9ba484e0b255cf2e8c0747 | |
parent | d613fa1e689f4cd308ba89d37d14831508d46002 (diff) | |
download | vaultwarden-daa66b08dc1c21f38710f8791d45f188702ccd17.tar.gz vaultwarden-daa66b08dc1c21f38710f8791d45f188702ccd17.zip |
Fix /sync without query string
-rw-r--r-- | src/api/core/ciphers.rs | 7 | ||||
-rw-r--r-- | src/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 index 6a8a1c02..d86e41dc 100644 --- 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 index a59b19ea..f8f65000 100644 --- 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, |