Browse Source

infra: Restrict the available routes for LTC

prometheus-integration
Alexis Hernandez 6 years ago
parent
commit
66da2b58a4
  1. 23
      infra/deployment/config/ltc-routes
  2. 8
      infra/deployment/ltc-backend.yml

23
infra/deployment/config/ltc-routes

@ -0,0 +1,23 @@
# Routes
# This file defines all application routes (Higher priority routes first)
# https://www.playframework.com/documentation/latest/ScalaRouting
# ~~~~
GET /health controllers.HealthController.check()
# GET /maintenance controllers.MaintenanceController.run(query: String ?= "")
GET /transactions/:txid controllers.TransactionsController.getTransaction(txid: String)
GET /transactions/:txid/raw controllers.TransactionsController.getRawTransaction(txid: String)
POST /transactions controllers.TransactionsController.sendRawTransaction()
GET /addresses/:address controllers.AddressesController.getBy(address: String)
GET /v2/addresses/:address/transactions controllers.AddressesController.getLightWalletTransactions(address: String, limit: Int ?= 10, lastSeenTxid: Option[String], order: String ?= "desc")
GET /blocks controllers.BlocksController.getLatestBlocks()
GET /blocks/:query controllers.BlocksController.getDetails(query: String)
GET /blocks/:query/raw controllers.BlocksController.getRawBlock(query: String)
GET /v2/blocks/:blockhash/transactions controllers.BlocksController.getTransactionsV2(blockhash: String, limit: Int ?= 10, lastSeenTxid: Option[String])
GET /stats controllers.StatisticsController.getStatus()
GET /v2/balances controllers.BalancesController.getHighest(limit: Int ?= 10, lastSeenAddress: Option[String])

8
infra/deployment/ltc-backend.yml

@ -54,6 +54,14 @@
owner: play
group: play
- name: Set the application routes
become: yes
copy:
src: config/ltc-routes
dest: /home/play/app/xsn-block-explorer-0.1.0-SNAPSHOT/conf/routes
owner: play
group: play
- name: Set the application files permissions
become: yes
file:

Loading…
Cancel
Save