Skip to content

Commit 88adf9a

Browse files
committed
added patch method
1 parent 99dc41d commit 88adf9a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

osbot_fast_api/api/routes/Fast_API__Routes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def add_route_get(self, function : Callable # Function t
3535
): # Register GET route with Type_Safe support
3636
return self.add_route(function, methods=['GET'])
3737

38+
@type_safe
39+
def add_route_patch(self, function : Callable # Function to register as POST
40+
): # Register POST route with Type_Safe support
41+
return self.add_route(function, methods=['PATCH'])
42+
43+
3844
@type_safe
3945
def add_route_post(self, function : Callable # Function to register as POST
4046
): # Register POST route with Type_Safe support

0 commit comments

Comments
 (0)