geforkt von mirrored/vaultwarden
Fix /sync without query string
Dieser Commit ist enthalten in:
Ursprung
d613fa1e68
Commit
daa66b08dc
2 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
|
@ -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")]
|
#[get("/ciphers")]
|
||||||
fn get_ciphers(headers: Headers, conn: DbConn) -> JsonResult {
|
fn get_ciphers(headers: Headers, conn: DbConn) -> JsonResult {
|
||||||
|
|
|
@ -30,6 +30,7 @@ pub fn routes() -> Vec<Route> {
|
||||||
prelogin,
|
prelogin,
|
||||||
|
|
||||||
sync,
|
sync,
|
||||||
|
sync_no_query,
|
||||||
|
|
||||||
get_ciphers,
|
get_ciphers,
|
||||||
get_cipher,
|
get_cipher,
|
||||||
|
|
Laden …
In neuem Issue referenzieren