Updated the documentation example for Directives.getFromDirectory and Directives.getFromResourceDirectory- #20186

This commit is contained in:
poojadshende 2016-04-10 14:30:42 -07:00
parent 8449647e40
commit 1b05cba2bc

View file

@ -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")
} }