diff --git a/server/app/com/xsn/explorer/modules/ConfigModule.scala b/server/app/com/xsn/explorer/modules/ConfigModule.scala new file mode 100644 index 0000000..0bac700 --- /dev/null +++ b/server/app/com/xsn/explorer/modules/ConfigModule.scala @@ -0,0 +1,11 @@ +package com.xsn.explorer.modules + +import com.google.inject.AbstractModule +import com.xsn.explorer.config.{PlayRPCConfig, RPCConfig} + +class ConfigModule extends AbstractModule { + + override def configure(): Unit = { + bind(classOf[RPCConfig]).to(classOf[PlayRPCConfig]) + } +} diff --git a/server/conf/application.conf b/server/conf/application.conf index 3f11714..a45d5b6 100644 --- a/server/conf/application.conf +++ b/server/conf/application.conf @@ -15,3 +15,5 @@ rpc { username = ${?XSN_RPC_USERNAME} password = ${?XSN_RPC_PASSWORD} } + +play.modules.enabled += "com.xsn.explorer.modules.ConfigModule"