diff --git a/README.md b/README.md index 9d2e843..7decb1e 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Hello, world! Get latest block of Volta network: ``` % curl localhost:8000/block -21118165 +Latest block is: 21133370 ``` ## Docker @@ -76,6 +76,6 @@ kubectl --namespace default port-forward $POD_NAME $CONTAINER_PORT:$CONTAINER_PO ``` % curl localhost:8000/block -21118770 +Latest block is: 21133370 helm un sample-app ``` \ No newline at end of file diff --git a/internal/latestblock/latestblock.go b/internal/latestblock/latestblock.go index af7d57d..cdbb5e9 100644 --- a/internal/latestblock/latestblock.go +++ b/internal/latestblock/latestblock.go @@ -46,5 +46,5 @@ func (ws WrapperStruct) GetBlockHandler(w http.ResponseWriter, req *http.Request panic(err) } - io.WriteString(w, block) + io.WriteString(w, "Latest block is: " + block) }