Updated the documentation example for Directives.getFromDirectory and Directives.getFromResourceDirectory- #20186
This commit is contained in:
parent
8449647e40
commit
1b05cba2bc
1 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ class FileAndResourceDirectivesExamplesSpec extends RoutingSpec {
|
||||||
}
|
}
|
||||||
"getFromDirectory-examples" in compileOnlySpec {
|
"getFromDirectory-examples" in compileOnlySpec {
|
||||||
val route =
|
val route =
|
||||||
path("tmp") {
|
pathPrefix("tmp") {
|
||||||
getFromDirectory("/tmp")
|
getFromDirectory("/tmp")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -92,7 +92,7 @@ class FileAndResourceDirectivesExamplesSpec extends RoutingSpec {
|
||||||
}
|
}
|
||||||
"getFromResourceDirectory-examples" in compileOnlySpec {
|
"getFromResourceDirectory-examples" in compileOnlySpec {
|
||||||
val route =
|
val route =
|
||||||
path("examples") {
|
pathPrefix("examples") {
|
||||||
getFromResourceDirectory("/examples")
|
getFromResourceDirectory("/examples")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue