Skip to content

Commit

Permalink
remove ignore attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanelad committed Feb 6, 2025
1 parent 9468fe6 commit b4aa3f6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/app_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ impl AppRoutes {
///
/// In the following example, you are adding `api` as a prefix and then nesting `v1` within it:
///
/// ```ignore
/// ```rust
/// use loco_rs::controller::AppRoutes;
/// use loco_rs::tests_cfg::*;
///
/// let app_routes = AppRoutes::with_default_routes()
/// .prefix("api")
Expand Down
6 changes: 6 additions & 0 deletions src/tests_cfg/controllers/auth.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use crate::controller::Routes;

#[must_use]
pub fn routes() -> Routes {
Routes::new()
}
6 changes: 6 additions & 0 deletions src/tests_cfg/controllers/home.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use crate::controller::Routes;

#[must_use]
pub fn routes() -> Routes {
Routes::new()
}
2 changes: 2 additions & 0 deletions src/tests_cfg/controllers/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod auth;
pub mod home;
1 change: 1 addition & 0 deletions src/tests_cfg/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pub mod app;
pub mod config;
pub mod controllers;
#[cfg(feature = "with-db")]
pub mod db;
#[cfg(any(feature = "bg_pg", feature = "bg_sqlt"))]
Expand Down

0 comments on commit b4aa3f6

Please sign in to comment.