diff --git a/knockoutwhistweb/app/modules/GatewayModule.scala b/knockoutwhistweb/app/modules/GatewayModule.scala new file mode 100644 index 0000000..f31b384 --- /dev/null +++ b/knockoutwhistweb/app/modules/GatewayModule.scala @@ -0,0 +1,9 @@ +package modules + +import com.google.inject.AbstractModule + +class GatewayModule extends AbstractModule { + override def configure(): Unit = { + bind(classOf[GatewayModule]).asEagerSingleton() + } +} diff --git a/knockoutwhistweb/conf/application.conf b/knockoutwhistweb/conf/application.conf index 25592e5..d413134 100644 --- a/knockoutwhistweb/conf/application.conf +++ b/knockoutwhistweb/conf/application.conf @@ -14,6 +14,8 @@ auth { publicKeyPem = ${?PUBLIC_KEY_PEM} } +play.modules.enabled += "modules.GatewayModule" + play.filters.enabled += "play.filters.cors.CORSFilter" play.filters.cors {