Skip to content

Commit 3d2010b

Browse files
committed
remove put restriction
1 parent 653ac57 commit 3d2010b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ task run
1212
### Creating a heartbeat
1313

1414
```sh
15-
curl -X PUT http://localhost:8181/{id}
15+
curl http://localhost:8181/{id}
1616
```
1717

1818
### Checking an existing heartbeat

Diff for: main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func run(cliCtx *cli.Context) error {
169169

170170
func internalRouter() http.Handler {
171171
mux := http.NewServeMux()
172-
mux.HandleFunc("PUT /{id}", handlePutHeartbeat)
172+
mux.HandleFunc("/{id}", handlePutHeartbeat)
173173
return mux
174174
}
175175

0 commit comments

Comments
 (0)