Update blueprints.py
Blueprint.add_route add default methods: `GET`
This commit is contained in:
parent
1866e4ef44
commit
34e626c633
|
@ -82,7 +82,7 @@ class Blueprint:
|
|||
return handler
|
||||
return decorator
|
||||
|
||||
def add_route(self, handler, uri, methods=None, host=None):
|
||||
def add_route(self, handler, uri, methods=frozenset({'GET'}), host=None):
|
||||
"""
|
||||
Creates a blueprint route from a function.
|
||||
:param handler: Function to handle uri request.
|
||||
|
|
Loading…
Reference in New Issue
Block a user