Skip to content

Commit

Permalink
server: Update maintenance endpoint to receive a query
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed Jan 5, 2019
1 parent 1c0c271 commit a3aa33b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/app/controllers/MaintenanceController.scala
Expand Up @@ -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 changes: 1 addition & 1 deletion server/conf/routes
Expand Up @@ -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)
Expand Down

0 comments on commit a3aa33b

Please sign in to comment.