Started to create rules editor

This commit is contained in:
2024-01-04 11:30:20 +01:00
parent aafa4bf145
commit 7d7a052f5f
4 changed files with 162 additions and 0 deletions

View File

@ -47,6 +47,7 @@ struct ServerConstraints {
nwfilter_name_size: LenConstraints,
nwfilter_comment_size: LenConstraints,
nwfilter_priority: SLenConstraints,
nwfilter_selectors_count: LenConstraints,
}
pub async fn static_config(local_auth: LocalAuthEnabled) -> impl Responder {
@ -89,6 +90,7 @@ pub async fn static_config(local_auth: LocalAuthEnabled) -> impl Responder {
min: -1000,
max: 1000,
},
nwfilter_selectors_count: LenConstraints { min: 0, max: 1 },
},
})
}