Browse Source

server: Add ConfigModule

scalafmt-draft
Alexis Hernandez 7 years ago
parent
commit
98f9aa3a69
  1. 11
      server/app/com/xsn/explorer/modules/ConfigModule.scala
  2. 2
      server/conf/application.conf

11
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])
}
}

2
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"

Loading…
Cancel
Save