Some more cleanup.

This commit is contained in:
2026-09-27 10:02:30 +02:00
parent 67153c79bb
commit 5f4c9bdf90
5 changed files with 27 additions and 31 deletions
+4 -4
View File
@@ -21,11 +21,11 @@ use crate::{
pub fn create_router() -> axum::Router<PgPool> {
axum::Router::new()
.route("/", axum::routing::get(get_scheduled_transactions))
.route("/", axum::routing::get(query_scheduled_transactions))
.route(
"/{id}",
axum::routing::get(get_scheduled_transaction)
.put(put_scheduled_transaction)
.put(upsert_scheduled_transaction)
.delete(delete_scheduled_transaction),
)
}
@@ -49,7 +49,7 @@ impl TryFrom<QueryParams> for repository::Query {
#[axum::debug_handler]
#[tracing::instrument(skip(pool))]
async fn get_scheduled_transactions(
async fn query_scheduled_transactions(
State(pool): State<PgPool>,
Query(query): Query<QueryParams>,
) -> Result<Json<Vec<ScheduledTransactionResponse>>, AppError> {
@@ -78,7 +78,7 @@ async fn get_scheduled_transaction(
#[axum::debug_handler]
#[tracing::instrument(skip(pool, transaction))]
async fn put_scheduled_transaction(
async fn upsert_scheduled_transaction(
State(pool): State<PgPool>,
Path(id): Path<Uuid>,
Json(transaction): Json<ScheduledTransactionRequest>,