api: add list_domains
This commit is contained in:
1 parent
685e13347e
commit
708db4b3ae
3 files changed
+48
-1
No files matched your search
@@ -13,6 +13,7 @@ use crate::auth_helpers::*;
|
||||
use crate::api2::types::*;
|
||||
|
||||
pub mod user;
|
||||
pub mod domain;
|
||||
|
||||
fn authenticate_user(username: &str, password: &str) -> Result<(), Error> {
|
||||
|
||||
@@ -137,6 +138,7 @@ const SUBDIRS: SubdirMap = &[
|
||||
"ticket", &Router::new()
|
||||
.post(&API_METHOD_CREATE_TICKET)
|
||||
),
|
||||
("domains", &domain::ROUTER),
|
||||
("users", &user::ROUTER),
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user