Skip to content

Commit a0d07cb

Browse files
committed
[#374] [stbx-service-rest] use /tx as prefix for all service routes
1 parent 79e072c commit a0d07cb

File tree

1 file changed

+2
-2
lines changed
  • stbx-service-rest/src/Statebox/Service

1 file changed

+2
-2
lines changed

stbx-service-rest/src/Statebox/Service/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ index :: Handler
101101
index = sendJson
102102
{ name : "Statebox REST API"
103103
, description : "collection of endpoints to interact with the Statebox protocol"
104-
, endpoints : { ping : "/ping"
104+
, endpoints : { ping : "/tx/ping"
105105
, getTransactions : "/tx"
106106
, getTransaction : "/tx/:hash"
107107
}
@@ -200,7 +200,7 @@ app state = do
200200
useExternal stringBodyParser
201201
use logger
202202
get "/" index
203-
get "/ping" ping
203+
get "/tx/ping" ping
204204
get "/tx" (getTransactionsHandler state)
205205
get "/tx/:hash" (getTransactionHandler state)
206206
post "/tx" (postTransactionHandler state)

0 commit comments

Comments
 (0)