feat: added unband endpoint
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
BAaboe 2025-07-24 02:14:29 +02:00
parent ba2442e786
commit 0e0c590e4d
2 changed files with 23 additions and 3 deletions

View file

@ -7,7 +7,7 @@ use axum::{
extract::{Multipart, Path, State},
http::StatusCode,
response::IntoResponse,
routing::{get, patch, post},
routing::{get, patch, post, delete},
};
use bytes::Bytes;
use uuid::Uuid;
@ -45,6 +45,7 @@ pub fn router() -> Router<Arc<AppState>> {
.route("/members", get(members::get))
// Bans
.route("/bans", get(bans::get))
.route("/bans/{uuid}", delete(bans::unban))
}
/// `GET /api/v1/guilds/{uuid}` DESCRIPTION