summaryrefslogtreecommitdiff
path: root/server/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes')
-rw-r--r--server/src/routes/user.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/routes/user.rs b/server/src/routes/user.rs
index f155f27..1b43e01 100644
--- a/server/src/routes/user.rs
+++ b/server/src/routes/user.rs
@@ -1,12 +1,12 @@
use crate::errors::AppError;
-use crate::models::user::User;
+use crate::models::user::{User, UserList};
use axum::{routing::get, Json, Router};
pub fn create_route() -> Router {
Router::new().route("/", get(list_users))
}
-async fn list_users() -> Result<Json<Vec<User>>, AppError> {
+async fn list_users() -> Result<Json<Vec<UserList>>, AppError> {
let users = User::list().await?;
Ok(Json(users))