start ACL api

This commit is contained in:
Dietmar Maurer
2020-04-13 11:09:44 +02:00
parent a83eab3c4d
commit ed3e60ae69
5 changed files with 188 additions and 5 deletions

View File

@ -14,6 +14,7 @@ use crate::api2::types::*;
pub mod user;
pub mod domain;
pub mod acl;
fn authenticate_user(username: &str, password: &str) -> Result<(), Error> {
@ -130,6 +131,7 @@ fn change_password(
#[sortable]
const SUBDIRS: SubdirMap = &sorted!([
("acl", &acl::ROUTER),
(
"password", &Router::new()
.put(&API_METHOD_CHANGE_PASSWORD)