Skip to content

Commit 58c9705

Browse files
committed
[#374] [stbx-service-rest] rename /helthcheck to /ping
1 parent d3613c6 commit 58c9705

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ index :: Handler
101101
index = 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)

0 commit comments

Comments
 (0)