# Routes
# This file defines all application routes (Higher priority routes first)
# https://www.playframework.com/documentation/latest/ScalaRouting
# ~~~~

GET   /health                controllers.HealthController.check()

GET   /transactions/:txid    controllers.TransactionsController.getTransaction(txid: String)

GET   /addresses/:address    controllers.AddressesController.getDetails(address: String)

GET   /blocks                controllers.BlocksController.getLatestBlocks()
GET   /blocks/:blockhash     controllers.BlocksController.getDetails(blockhash: String)

GET   /stats                 controllers.StatisticsController.getStatus()

GET   /balances              controllers.BalancesController.get(offset: Int ?= 0, limit: Int ?= 10, orderBy: String ?= "")