Changed list to frozenset
This commit is contained in:
parent
d05d48dc7d
commit
4562190770
|
@ -94,7 +94,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