-
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added prefix and route nesting to AppRoutes (#1241)
* Added prefix and route nesting to AppRoutes - replaced snapshot testing with normal asserts * Applied review suggestions * remove `ignore` attribute * Added documentation --------- Co-authored-by: Elad Kaplan <[email protected]>
- Loading branch information
1 parent
5de4140
commit ef72496
Showing
22 changed files
with
277 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]].snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
source: src/controller/app_routes.rs | ||
assertion_line: 370 | ||
expression: "format!(\"{:?} {}\", route.actions, route.uri)" | ||
--- | ||
"[GET] /" |
1 change: 1 addition & 0 deletions
1
src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_health].snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
source: src/controller/app_routes.rs | ||
assertion_line: 337 | ||
expression: "format!(\"{:?} {}\", route.actions, route.uri)" | ||
--- | ||
"[GET] /_health" |
1 change: 1 addition & 0 deletions
1
src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_ping].snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
source: src/controller/app_routes.rs | ||
assertion_line: 337 | ||
expression: "format!(\"{:?} {}\", route.actions, route.uri)" | ||
--- | ||
"[GET] /_ping" |
1 change: 1 addition & 0 deletions
1
...troller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco-rs].snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
source: src/controller/app_routes.rs | ||
assertion_line: 388 | ||
expression: "format!(\"{:?} {}\", route.actions, route.uri)" | ||
--- | ||
"[GET] /api/loco-rs" |
1 change: 1 addition & 0 deletions
1
...controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco].snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
source: src/controller/app_routes.rs | ||
assertion_line: 388 | ||
expression: "format!(\"{:?} {}\", route.actions, route.uri)" | ||
--- | ||
"[GET] /api/loco" |
Oops, something went wrong.