Expose more information in logging and improve error handling
Build and Publish Docker Container / build (push) Successful in 9m28s

This commit is contained in:
2024-06-03 19:04:44 +01:00
parent 046ce44d23
commit 97f57803e5
5 changed files with 44 additions and 38 deletions
+1 -2
View File
@@ -2,7 +2,7 @@ mod error;
mod ingestion;
use crate::error::AppError;
use crate::ingestion::routes::{monzo_batched_csv, monzo_batched_json, monzo_updated};
use crate::ingestion::routes::{monzo_batched_csv, monzo_batched_json};
use axum::routing::{get, post};
use axum::{Extension, Router};
use clap::Parser;
@@ -51,7 +51,6 @@ async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt::init();
let app = Router::new()
.route("/health", get(health_check))
.route("/monzo-updated", post(monzo_updated))
.route("/monzo-batch-export", post(monzo_batched_json))
.route("/monzo-csv-ingestion", post(monzo_batched_csv))
.layer(Extension(connection.clone()))