add: audit log and reports table
TODO: audit log/reports UIs
This commit is contained in:
parent
9a9b72bdbb
commit
b2df2739a7
16 changed files with 387 additions and 6 deletions
|
@ -172,6 +172,9 @@ pub fn routes() -> Router {
|
|||
"/communities/{cid}/memberships/{uid}/role",
|
||||
post(communities::communities::update_membership_role),
|
||||
)
|
||||
// ipbans
|
||||
.route("/bans/{ip}", post(auth::ipbans::create_request))
|
||||
.route("/bans/id/{id}", delete(auth::ipbans::delete_request))
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
@ -265,3 +268,8 @@ pub struct UpdateMembershipRole {
|
|||
pub struct DeleteUser {
|
||||
pub password: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct CreateIpBan {
|
||||
pub reason: String,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue