|
|
|
@ -3,7 +3,7 @@ use std::fmt::Debug;
|
|
|
|
|
use anyhow::Result;
|
|
|
|
|
use axum::{
|
|
|
|
|
async_trait,
|
|
|
|
|
extract::{FromRef, FromRequestParts, Query, State},
|
|
|
|
|
extract::{FromRef, FromRequestParts, Query, State, DefaultBodyLimit},
|
|
|
|
|
http::{header::AUTHORIZATION, request::Parts, HeaderValue, StatusCode},
|
|
|
|
|
response::{IntoResponse, Response},
|
|
|
|
|
routing::{delete, get, post},
|
|
|
|
@ -267,6 +267,7 @@ async fn main() -> anyhow::Result<()> {
|
|
|
|
|
.allow_headers([AUTHORIZATION, CONTENT_TYPE, IF_NONE_MATCH]),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
.layer(DefaultBodyLimit::max(512 * 1024))
|
|
|
|
|
.layer(sentry_tower::NewSentryLayer::<_>::new_from_top())
|
|
|
|
|
.layer(sentry_tower::SentryHttpLayer::with_transaction())
|
|
|
|
|
.with_state(AppState {
|
|
|
|
|