api_schema: allow generic api handler functions
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -388,7 +388,7 @@ pub fn router() -> Router {
|
||||
|
||||
let datastore_info = Router::new()
|
||||
.get(ApiMethod::new(
|
||||
|_,_,_| Ok(json!([
|
||||
|| Ok(json!([
|
||||
{"subdir": "backups" },
|
||||
{"subdir": "pxar" },
|
||||
{"subdir": "gc" },
|
||||
|
Reference in New Issue
Block a user