Changed list to frozenset
This commit is contained in:
parent
c677dc22a8
commit
68b9700abf
|
@ -93,7 +93,7 @@ class Sanic:
|
||||||
return self.route(uri, methods=frozenset({"PATCH"}), host=host)
|
return self.route(uri, methods=frozenset({"PATCH"}), host=host)
|
||||||
|
|
||||||
def delete(self, uri, host=None):
|
def delete(self, uri, host=None):
|
||||||
return self.route(uri, methods=["DELETE"], host=host)
|
return self.route(uri, methods=frozenset({"DELETE"}), host=host)
|
||||||
|
|
||||||
def add_route(self, handler, uri, methods=frozenset({'GET'}), host=None):
|
def add_route(self, handler, uri, methods=frozenset({'GET'}), host=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user