style: use better function names in server

This commit is contained in:
Radical 2025-05-12 17:18:55 +02:00
parent 8fdbf8cc48
commit b499ff1cf8
6 changed files with 16 additions and 16 deletions

View file

@ -4,7 +4,7 @@ use ::uuid::Uuid;
use log::error;
#[get("{uuid}/roles/{role_uuid}")]
pub async fn res(req: HttpRequest, path: web::Path<(Uuid, Uuid)>, data: web::Data<Data>) -> Result<HttpResponse, Error> {
pub async fn get(req: HttpRequest, path: web::Path<(Uuid, Uuid)>, data: web::Data<Data>) -> Result<HttpResponse, Error> {
let headers = req.headers();
let auth_header = get_auth_header(headers);