api3/admin/datastore.rs: change api patch for upload_catar

This commit is contained in:
Dietmar Maurer 2019-01-17 09:16:50 +01:00
parent 37b98249f4
commit 264f52cf70

View File

@ -74,7 +74,10 @@ pub fn router() -> Router {
ObjectSchema::new("Directory index.") ObjectSchema::new("Directory index.")
.required("name", StringSchema::new("Datastore name."))) .required("name", StringSchema::new("Datastore name.")))
) )
.upload(upload_catar::api_method_upload_catar()) .subdir(
"upload_catar",
Router::new()
.upload(upload_catar::api_method_upload_catar()))
.subdir( .subdir(
"gc", "gc",
Router::new() Router::new()