src/api2/config/datastore.rs: set protected flags for create/delete API
This commit is contained in:
parent
f0db500808
commit
a66e7920dc
|
@ -35,7 +35,7 @@ pub const POST: ApiMethod = ApiMethod::new(
|
||||||
("path", false, &StringSchema::new("Directory path. The directory path is created if it does not already exist.").schema()),
|
("path", false, &StringSchema::new("Directory path. The directory path is created if it does not already exist.").schema()),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
);
|
).protected(true);
|
||||||
|
|
||||||
fn create_datastore(
|
fn create_datastore(
|
||||||
param: Value,
|
param: Value,
|
||||||
|
@ -75,7 +75,7 @@ pub const DELETE: ApiMethod = ApiMethod::new(
|
||||||
("name", false, &DATASTORE_SCHEMA),
|
("name", false, &DATASTORE_SCHEMA),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
);
|
).protected(true);
|
||||||
|
|
||||||
fn delete_datastore(
|
fn delete_datastore(
|
||||||
param: Value,
|
param: Value,
|
||||||
|
|
Loading…
Reference in New Issue