fix: route ranking

This commit is contained in:
Zomatree
2025-06-05 23:09:27 +01:00
committed by izzy
parent 1b2c7b2fa1
commit e00603f276
2 changed files with 20 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ use validator::Validate;
///
/// Edit a role by its id.
#[openapi(tag = "Server Permissions")]
#[patch("/<target>/roles/<role_id>", data = "<data>")]
#[patch("/<target>/roles/<role_id>", data = "<data>", rank = 1)]
pub async fn edit(
db: &State<Database>,
user: User,