Expose more information in logging and improve error handling
Build and Publish Docker Container / build (push) Successful in 9m28s
Build and Publish Docker Container / build (push) Successful in 9m28s
This commit is contained in:
+1
-2
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user