Slight naming alignment.
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -21,7 +21,7 @@ use crate::{
|
||||
|
||||
pub fn create_router() -> axum::Router<PgPool> {
|
||||
axum::Router::new()
|
||||
.route("/", axum::routing::get(query_scheduled_transactions))
|
||||
.route("/", axum::routing::get(list_scheduled_transactions))
|
||||
.route(
|
||||
"/{id}",
|
||||
axum::routing::get(get_scheduled_transaction)
|
||||
@@ -49,7 +49,7 @@ impl TryFrom<QueryParams> for repository::Query {
|
||||
|
||||
#[axum::debug_handler]
|
||||
#[tracing::instrument(skip(pool))]
|
||||
async fn query_scheduled_transactions(
|
||||
async fn list_scheduled_transactions(
|
||||
State(pool): State<PgPool>,
|
||||
Query(query): Query<QueryParams>,
|
||||
) -> Result<Json<Vec<ScheduledTransactionResponse>>, AppError> {
|
||||
|
||||
@@ -17,7 +17,7 @@ use crate::{
|
||||
|
||||
pub fn create_router() -> axum::Router<PgPool> {
|
||||
axum::Router::new()
|
||||
.route("/", axum::routing::get(query_transactions))
|
||||
.route("/", axum::routing::get(list_transactions))
|
||||
.route(
|
||||
"/{id}",
|
||||
axum::routing::get(get_transaction)
|
||||
@@ -45,7 +45,7 @@ impl TryFrom<QueryParams> for repository::Query {
|
||||
|
||||
#[axum::debug_handler]
|
||||
#[tracing::instrument(skip(pool))]
|
||||
async fn query_transactions(
|
||||
async fn list_transactions(
|
||||
State(pool): State<PgPool>,
|
||||
Query(query): Query<QueryParams>,
|
||||
) -> Result<Json<Vec<TransactionResponse>>, AppError> {
|
||||
|
||||
Reference in New Issue
Block a user