power loss

This commit is contained in:
Andras Schmelczer 2026-09-21 21:29:52 +01:00
commit d56084e4bc

View file

@ -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),