Skip to content

Commit 376db07

Browse files
author
Joel Collins
committed
Switched to PUT for properties
1 parent 959ef15 commit 376db07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/simple_thing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def get(self):
8585
my_component = find_component("org.labthings.example.mycomponent")
8686
return my_component.magic_denoise
8787

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

9292
# Find our attached component

0 commit comments

Comments
 (0)