File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
stbx-service-rest/src/Statebox/Service Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,14 @@ index :: Handler
101101index = sendJson
102102 { name : " Statebox REST API"
103103 , description : " collection of endpoints to interact with the Statebox protocol"
104- , endpoints : { healthcheck : " /healthcheck "
104+ , endpoints : { ping : " /ping "
105105 , getTransactions : " /tx"
106106 , getTransaction : " /tx/:hash"
107107 }
108108 }
109109
110- healthcheck :: Handler
111- healthcheck = sendJson { health: " I'm fine" }
110+ ping :: Handler
111+ ping = sendJson { health: " I'm fine" }
112112
113113-- | Endpoint for getting all the transactions from the transaction store.
114114-- | Responds to `GET /tx`
@@ -200,7 +200,7 @@ app state = do
200200 useExternal stringBodyParser
201201 use logger
202202 get " /" index
203- get " /healthcheck " healthcheck
203+ get " /ping " ping
204204 get " /tx" (getTransactionsHandler state)
205205 get " /tx/:hash" (getTransactionHandler state)
206206 post " /tx" (postTransactionHandler state)
You can’t perform that action at this time.
0 commit comments