Slight naming alignment.

This commit is contained in:
2026-09-27 10:27:06 +02:00
parent 4e1eea5849
commit bb58e3fd77
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ use crate::{
pub fn create_router() -> axum::Router<PgPool> {
axum::Router::new()
.route("/", axum::routing::get(query_accounts))
.route("/", axum::routing::get(list_accounts))
.route(
"/{id}",
axum::routing::get(get_account)
@@ -45,7 +45,7 @@ impl TryFrom<QueryParams> for repository::Query {
#[axum::debug_handler]
#[tracing::instrument(skip(pool))]
async fn query_accounts(
async fn list_accounts(
State(pool): State<PgPool>,
Query(query): Query<QueryParams>,
) -> Result<Json<Vec<AccountResponse>>, AppError> {