Slight naming alignment.
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user