aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zach@driver.xyz>2018-02-20 11:39:11 -0800
committerZach Smith <zach@driver.xyz>2018-02-20 11:39:11 -0800
commita499e0308cd1a9be29c21c4d453c8a7aa7fa25f1 (patch)
tree6a7577fb77136731fc0e15ef86ec8eacf22e2e9d
parentb6a5185ba5acfc92c6682ddb2158fb777cb44b81 (diff)
downloaddriver-core-a499e0308cd1a9be29c21c4d453c8a7aa7fa25f1.tar.gz
driver-core-a499e0308cd1a9be29c21c4d453c8a7aa7fa25f1.tar.bz2
driver-core-a499e0308cd1a9be29c21c4d453c8a7aa7fa25f1.zip
Use config from outer scope in DriverApp
-rw-r--r--src/main/scala/xyz/driver/core/app/DriverApp.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/core/app/DriverApp.scala b/src/main/scala/xyz/driver/core/app/DriverApp.scala
index a593893..1ded4dd 100644
--- a/src/main/scala/xyz/driver/core/app/DriverApp.scala
+++ b/src/main/scala/xyz/driver/core/app/DriverApp.scala
@@ -72,7 +72,7 @@ class DriverApp(
val versionRt = versionRoute(version, gitHash, time.currentTime())
val basicRoutes = new DriverRoute {
override def log: Logger = self.log
- override def config: Config = xyz.driver.core.config.loadDefaultConfig
+ override def config: Config = self.config
override def route: Route = versionRt ~ healthRoute ~ swaggerRoute
}
val combinedRoute = modules.map(_.route).foldLeft(basicRoutes.routeWithDefaults)(_ ~ _)