Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanelad committed Jan 11, 2024
1 parent ccf6dc4 commit df3b8fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
7 changes: 2 additions & 5 deletions src/controller/middleware/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
//!
//! ```
//! use loco_rs::{
//! controller::{middleware, format},
//! controller::{middleware, format, Json},
//! app::AppContext,
//! Result,
//! };
//! use axum::{
//! Json,
//! extract::State
//! };
//! use axum::extract::State;
//!
//! pub struct TestResponse {
//! pub pid: String,
Expand Down
12 changes: 6 additions & 6 deletions src/controller/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ impl Routes {
///
/// ```rust
/// use loco_rs::{
/// controller::{Routes, format},
/// controller::{Routes, format, Json},
/// Result,
/// };
/// use axum::{routing::get, Json};
/// use axum::routing::get;
/// use serde::Serialize;;
///
/// #[derive(Serialize)]
Expand Down Expand Up @@ -65,9 +65,9 @@ impl Routes {
/// ```rust
/// use loco_rs::{
/// Result,
/// controller::{Routes, format},
/// controller::{Routes, format, Json},
/// };
/// use axum::{routing::get, Json};
/// use axum::routing::get;
/// use serde::Serialize;
///
/// #[derive(Serialize)]
Expand Down Expand Up @@ -101,10 +101,10 @@ impl Routes {
///
/// ```rust
/// use loco_rs::{
/// controller::{Routes, format},
/// controller::{Routes, format, Json},
/// Result,
/// };
/// use axum::{routing::get, Json};
/// use axum::routing::get;
/// use serde::Serialize;
///
/// #[derive(Serialize)]
Expand Down

0 comments on commit df3b8fa

Please sign in to comment.