]> git.proxmox.com Git - proxmox.git/commitdiff
update proxmox-router to 1.3.0
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 7 Sep 2022 07:21:41 +0000 (09:21 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 7 Sep 2022 12:17:12 +0000 (14:17 +0200)
no real change for PBS usage - the ApiHandler enum is marked
non_exhaustive now because it has extra values if the new (enabled by
default) "server" feature is enabled.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
proxmox-rest-server/Cargo.toml
proxmox-rest-server/src/rest.rs

index 74cdbea46559540bd199f255e101b4551bc9fded..cfd1af9be4c590f4d665d3205cd07a783ff13dde 100644 (file)
@@ -37,7 +37,7 @@ proxmox-compression = "0.1.1"
 proxmox-io = "1"
 proxmox-lang = "1.1"
 proxmox-http = { version = "0.7", features = [ "client" ] }
-proxmox-router = "1.2.4"
+proxmox-router = "1.3.0"
 proxmox-schema = { version = "1.3.1", features = [ "api-macro", "upid-api-impl" ] }
 proxmox-time = "1"
 proxmox-sys = { version = "0.4", features = [ "logrotate", "timer" ] }
index 61898d4c25c81069d871bbbfb9630af83adb563c..96c35f090574ceb48b3bc77c14e8f9a6b058260d 100644 (file)
@@ -470,6 +470,9 @@ pub(crate) async fn handle_api_request<Env: RpcEnvironment, S: 'static + BuildHa
                 .await
                 .map(|data| formatter.format_data(data, &rpcenv))
         }
+        _ => {
+            bail!("Unknown API handler type");
+        }
     };
 
     let mut resp = match result {