Fix HTTP method of the server
This commit is contained in:
parent
66e2fb3768
commit
ea603f83fd
4 changed files with 15 additions and 15 deletions
|
|
@ -17,4 +17,4 @@ pub const DEFAULT_LOG_ROTATION_INTERVAL: Duration = Duration::from_secs(60 * 60
|
|||
|
||||
pub const DEFAULT_MERGEABLE_FILE_EXTENSIONS: &[&str] = &["md", "txt"];
|
||||
|
||||
pub const SUPPORTED_API_VERSION: u32 = 1;
|
||||
pub const SUPPORTED_API_VERSION: u32 = 2;
|
||||
|
|
|
|||
|
|
@ -126,11 +126,11 @@ fn get_authed_routes(app_state: AppState) -> Router<AppState> {
|
|||
)
|
||||
.route(
|
||||
"/vaults/:vault_id/documents/:document_id/versions/:version_id",
|
||||
put(fetch_document_version::fetch_document_version),
|
||||
get(fetch_document_version::fetch_document_version),
|
||||
)
|
||||
.route(
|
||||
"/vaults/:vault_id/documents/:document_id/versions/:version_id/content",
|
||||
put(fetch_document_version_content::fetch_document_version_content),
|
||||
get(fetch_document_version_content::fetch_document_version_content),
|
||||
)
|
||||
.route(
|
||||
"/vaults/:vault_id/documents/:document_id",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue