power loss
This commit is contained in:
parent
0f6b618c0b
commit
d56084e4bc
1 changed files with 18667 additions and 3902 deletions
|
|
@ -63,6 +63,11 @@ pub async fn create_server(config: Config) -> Result<()> {
|
|||
http::header::CONTENT_TYPE,
|
||||
http::header::AUTHORIZATION,
|
||||
DEVICE_ID_HEADER_NAME.clone(),
|
||||
http::header::HeaderName::from_static("x-vault-link-history"),
|
||||
])
|
||||
.expose_headers([
|
||||
http::header::HeaderName::from_static("x-vault-link-history"),
|
||||
http::header::HeaderName::from_static("x-vault-link-history-mismatch"),
|
||||
])
|
||||
.allow_methods([Method::GET, Method::PUT]),
|
||||
)
|
||||
|
|
@ -113,6 +118,10 @@ fn get_authed_routes(app_state: AppState) -> Router<AppState> {
|
|||
get(endpoints::fetch_latest_document_version::fetch_latest_document_version)
|
||||
.put(endpoints::put_file_content::put_file_content),
|
||||
)
|
||||
.route(
|
||||
"/vaults/:vault_id/documents/:document_id/metadata",
|
||||
get(endpoints::fetch_latest_document_version::fetch_latest_document_metadata),
|
||||
)
|
||||
.route(
|
||||
"/vaults/:vault_id/documents/:document_id/versions/:vault_update_id/content",
|
||||
get(endpoints::fetch_document_version_content::fetch_document_version_content),
|
||||
|
|
|
|||
Loading…
Reference in a new issue