Corrected for cargo update.

This commit is contained in:
2025-04-23 11:12:15 -04:00
parent ce10c73eae
commit cb69c4d55a
3 changed files with 23 additions and 284 deletions

View File

@ -1,5 +1,4 @@
use axum::{
async_trait,
extract::{Extension, FromRequestParts, State},
http::request::Parts,
response::IntoResponse,
@ -45,7 +44,7 @@ async fn main() {
async fn create_app(state: MoreThanText) -> Router {
Router::new()
.route("/", get(mtt_conn))
.route("/api/:document", post(mtt_conn))
.route("/api/{document}", post(mtt_conn))
.layer(CookieManagerLayer::new())
.layer(Extension(state.clone()))
.with_state(state)
@ -54,7 +53,6 @@ async fn create_app(state: MoreThanText) -> Router {
#[derive(Clone)]
struct SessionID(Uuid);
#[async_trait]
impl<S> FromRequestParts<S> for SessionID
where
S: Send + Sync,