For function decorators, ['GET'] is the default methods

This commit is contained in:
Jeong YunWon
2017-01-19 23:56:51 +09:00
parent 1ad7b95437
commit 0a160c4a0b
3 changed files with 3 additions and 3 deletions

View File

@@ -497,7 +497,7 @@ def test_overload_routes():
def test_unmergeable_overload_routes():
app = Sanic('test_dynamic_route')
@app.route('/overload_whole')
@app.route('/overload_whole', methods=None)
async def handler1(request):
return text('OK1')