Browse Source
Merge pull request #226 from janost/fix-sync-without-query-string
Fix /sync without query string
pull/231/head
Daniel García
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
0 deletions
-
src/api/core/ciphers.rs
-
src/api/core/mod.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 { |
|
|
|
|
|
@ -30,6 +30,7 @@ pub fn routes() -> Vec<Route> { |
|
|
|
prelogin, |
|
|
|
|
|
|
|
sync, |
|
|
|
sync_no_query, |
|
|
|
|
|
|
|
get_ciphers, |
|
|
|
get_cipher, |
|
|
|