Browse Source

server: Update maintenance endpoint to receive a query

prometheus-integration
Alexis Hernandez 6 years ago
parent
commit
a3aa33b809
  1. 2
      server/app/controllers/MaintenanceController.scala
  2. 2
      server/conf/routes

2
server/app/controllers/MaintenanceController.scala

@ -11,7 +11,7 @@ class MaintenanceController @Inject() (
components: MyJsonControllerComponents)
extends MyJsonController(components) {
def run() = public { _ =>
def run(query: String) = public { _ =>
Future.successful(Good(JsObject.empty))
}
}

2
server/conf/routes

@ -4,7 +4,7 @@
# ~~~~
GET /health controllers.HealthController.check()
# GET /maintenance controllers.MaintenanceController.run()
# GET /maintenance controllers.MaintenanceController.run(query: String ?= "")
GET /transactions/:txid controllers.TransactionsController.getTransaction(txid: String)
GET /transactions/:txid/raw controllers.TransactionsController.getRawTransaction(txid: String)

Loading…
Cancel
Save