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> { pub fn create_router() -> axum::Router<PgPool> {
axum::Router::new() axum::Router::new()
.route("/", axum::routing::get(query_accounts)) .route("/", axum::routing::get(list_accounts))
.route( .route(
"/{id}", "/{id}",
axum::routing::get(get_account) axum::routing::get(get_account)
@@ -45,7 +45,7 @@ impl TryFrom<QueryParams> for repository::Query {
#[axum::debug_handler] #[axum::debug_handler]
#[tracing::instrument(skip(pool))] #[tracing::instrument(skip(pool))]
async fn query_accounts( async fn list_accounts(
State(pool): State<PgPool>, State(pool): State<PgPool>,
Query(query): Query<QueryParams>, Query(query): Query<QueryParams>,
) -> Result<Json<Vec<AccountResponse>>, AppError> { ) -> Result<Json<Vec<AccountResponse>>, AppError> {
+2 -2
View File
@@ -21,7 +21,7 @@ use crate::{
pub fn create_router() -> axum::Router<PgPool> { pub fn create_router() -> axum::Router<PgPool> {
axum::Router::new() axum::Router::new()
.route("/", axum::routing::get(query_scheduled_transactions)) .route("/", axum::routing::get(list_scheduled_transactions))
.route( .route(
"/{id}", "/{id}",
axum::routing::get(get_scheduled_transaction) axum::routing::get(get_scheduled_transaction)
@@ -49,7 +49,7 @@ impl TryFrom<QueryParams> for repository::Query {
#[axum::debug_handler] #[axum::debug_handler]
#[tracing::instrument(skip(pool))] #[tracing::instrument(skip(pool))]
async fn query_scheduled_transactions( async fn list_scheduled_transactions(
State(pool): State<PgPool>, State(pool): State<PgPool>,
Query(query): Query<QueryParams>, Query(query): Query<QueryParams>,
) -> Result<Json<Vec<ScheduledTransactionResponse>>, AppError> { ) -> Result<Json<Vec<ScheduledTransactionResponse>>, AppError> {
+2 -2
View File
@@ -17,7 +17,7 @@ use crate::{
pub fn create_router() -> axum::Router<PgPool> { pub fn create_router() -> axum::Router<PgPool> {
axum::Router::new() axum::Router::new()
.route("/", axum::routing::get(query_transactions)) .route("/", axum::routing::get(list_transactions))
.route( .route(
"/{id}", "/{id}",
axum::routing::get(get_transaction) axum::routing::get(get_transaction)
@@ -45,7 +45,7 @@ impl TryFrom<QueryParams> for repository::Query {
#[axum::debug_handler] #[axum::debug_handler]
#[tracing::instrument(skip(pool))] #[tracing::instrument(skip(pool))]
async fn query_transactions( async fn list_transactions(
State(pool): State<PgPool>, State(pool): State<PgPool>,
Query(query): Query<QueryParams>, Query(query): Query<QueryParams>,
) -> Result<Json<Vec<TransactionResponse>>, AppError> { ) -> Result<Json<Vec<TransactionResponse>>, AppError> {