aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjanost <[email protected]>2018-10-19 00:54:40 +0200
committerjanost <[email protected]>2018-10-19 00:54:40 +0200
commitdaa66b08dc1c21f38710f8791d45f188702ccd17 (patch)
tree000a3f5a39424cb5cc9ba484e0b255cf2e8c0747
parentd613fa1e689f4cd308ba89d37d14831508d46002 (diff)
downloadvaultwarden-daa66b08dc1c21f38710f8791d45f188702ccd17.tar.gz
vaultwarden-daa66b08dc1c21f38710f8791d45f188702ccd17.zip
Fix /sync without query string
-rw-r--r--src/api/core/ciphers.rs7
-rw-r--r--src/api/core/mod.rs1
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,