feat: finished auditlog object and added endpoint to get all auditlogs

This commit is contained in:
BAaboe 2025-08-05 10:52:22 +02:00
parent 6017b7087f
commit e1d3a73687
3 changed files with 91 additions and 2 deletions

View file

@ -17,6 +17,7 @@ mod channels;
mod invites;
mod members;
mod roles;
mod auditlogs;
use crate::{
AppState,
@ -46,6 +47,8 @@ pub fn router() -> Router<Arc<AppState>> {
// Bans
.route("/bans", get(bans::get))
.route("/bans/{uuid}", delete(bans::unban))
// Audit Logs
.route("/auditlogs", get(auditlogs::get))
}
/// `GET /api/v1/guilds/{uuid}` DESCRIPTION