1
0
Fork 0
forked from gorb/backend

style: cargo clippy && cargo fmt

This commit is contained in:
Radical 2025-05-30 21:17:30 +02:00
parent c9a3e8c6c4
commit d615f1392e
31 changed files with 288 additions and 181 deletions

View file

@ -3,23 +3,25 @@
use actix_web::{HttpRequest, HttpResponse, Scope, get, web};
use crate::{
api::v1::auth::check_access_token, error::Error, structs::{StartAmountQuery, User}, utils::{get_auth_header, global_checks}, Data
Data,
api::v1::auth::check_access_token,
error::Error,
structs::{StartAmountQuery, User},
utils::{get_auth_header, global_checks},
};
mod uuid;
pub fn web() -> Scope {
web::scope("/users")
.service(get)
.service(uuid::get)
web::scope("/users").service(get).service(uuid::get)
}
/// `GET /api/v1/users` Returns all users on this instance
///
///
/// requires auth: yes
///
///
/// requires admin: yes
///
///
/// ### Response Example
/// ```
/// json!([