aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/app/DriverApp.scala
diff options
context:
space:
mode:
authorZach Smith <zach@driver.xyz>2017-10-24 14:34:26 -0700
committerZach Smith <zach@driver.xyz>2017-10-31 09:19:04 -0700
commit0ba232ad3d3752e2cdc585de727f0506d598d50d (patch)
tree90d7a2fb3534d06dc1641c57caa2f5664f44e244 /src/main/scala/xyz/driver/core/app/DriverApp.scala
parente7d849b55f975f1c119cebb22f95d9de903ae3c3 (diff)
downloaddriver-core-0ba232ad3d3752e2cdc585de727f0506d598d50d.tar.gz
driver-core-0ba232ad3d3752e2cdc585de727f0506d598d50d.tar.bz2
driver-core-0ba232ad3d3752e2cdc585de727f0506d598d50d.zip
Change Module back to having a simple route: Route method
Diffstat (limited to 'src/main/scala/xyz/driver/core/app/DriverApp.scala')
-rw-r--r--src/main/scala/xyz/driver/core/app/DriverApp.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/core/app/DriverApp.scala b/src/main/scala/xyz/driver/core/app/DriverApp.scala
index 8f2cf70..4110c37 100644
--- a/src/main/scala/xyz/driver/core/app/DriverApp.scala
+++ b/src/main/scala/xyz/driver/core/app/DriverApp.scala
@@ -108,8 +108,7 @@ class DriverApp(appName: String,
respondWithHeaders(responseHeaders) {
modules
- .flatMap(_.routes)
- .map(_.routeWithDefaults)
+ .map(_.route)
.foldLeft(versionRt ~ healthRoute ~ swaggerRoutes)(_ ~ _)
}(contextWithTrackingId)
}