Skip to content

Commit

Permalink
fix: change http method GET -> PUT in python binding web server api (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolism authored Aug 31, 2024
1 parent a6e6a0c commit 202fe26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding/python/examples/web_server_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def get(request: web.Request) -> web.Response:
return web.Response(text=store.get(id))


@routes.get("/put/{id}/{value}")
@routes.put("/{id}/{value}")
async def put(request: web.Request) -> web.Response:
raft: Raft = request.app["state"]["raft"]
id, value = request.match_info["id"], request.match_info["value"]
Expand Down

0 comments on commit 202fe26

Please sign in to comment.