Skip to content

Commit

Permalink
Switched to PUT for properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Jun 22, 2020
1 parent 959ef15 commit 376db07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/simple_thing.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def get(self):
my_component = find_component("org.labthings.example.mycomponent")
return my_component.magic_denoise

# Main function to handle POST requests (write)
def post(self, new_property_value):
# Main function to handle PUT requests (write)
def put(self, new_property_value):
"""Change the current magic_denoise value"""

# Find our attached component
Expand Down

0 comments on commit 376db07

Please sign in to comment.