Added get scheduled transaction.
This commit is contained in:
@@ -17,6 +17,7 @@ pub fn create_router() -> axum::Router<PgPool> {
|
||||
.route("/{id}", axum::routing::delete(delete_transaction))
|
||||
}
|
||||
|
||||
#[axum::debug_handler]
|
||||
#[tracing::instrument(skip(pool))]
|
||||
async fn get_transactions(
|
||||
State(pool): State<PgPool>,
|
||||
@@ -40,6 +41,7 @@ async fn get_transactions(
|
||||
Ok(Json(transactions))
|
||||
}
|
||||
|
||||
#[axum::debug_handler]
|
||||
#[tracing::instrument(skip(pool))]
|
||||
async fn delete_transaction(
|
||||
Path(id): Path<Uuid>,
|
||||
|
||||
Reference in New Issue
Block a user