From f13755d2f0563b1cc56683a6c5c5cb472e004591 Mon Sep 17 00:00:00 2001 From: Mathieu Ancelin Date: Thu, 31 Aug 2023 17:51:45 +0200 Subject: [PATCH] enable green score --- otoroshi/app/greenscore/extension.scala | 2 +- otoroshi/javascript/src/backoffice.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/otoroshi/app/greenscore/extension.scala b/otoroshi/app/greenscore/extension.scala index 7364b29830..d195741c40 100644 --- a/otoroshi/app/greenscore/extension.scala +++ b/otoroshi/app/greenscore/extension.scala @@ -157,7 +157,7 @@ class GreenScoreExtension(val env: Env) extends AdminExtension { override def id: AdminExtensionId = AdminExtensionId("otoroshi.extensions.GreenScore") - override def enabled: Boolean = false //env.isDev || configuration.getOptional[Boolean]("enabled").getOrElse(false) + override def enabled: Boolean = env.isDev || configuration.getOptional[Boolean]("enabled").getOrElse(false) override def name: String = "Green Score" diff --git a/otoroshi/javascript/src/backoffice.js b/otoroshi/javascript/src/backoffice.js index 3457a8fca3..a9fb266fb4 100644 --- a/otoroshi/javascript/src/backoffice.js +++ b/otoroshi/javascript/src/backoffice.js @@ -248,5 +248,5 @@ export function getExtension(name) { } function setupLocalExtensions() { - // setupGreenScoreExtension(registerExtension); + setupGreenScoreExtension(registerExtension); }