This commit is contained in:
Benny 2017-05-09 00:28:27 +08:00
parent 1a2a0931ed
commit ed9c5d8844

View File

@ -290,7 +290,7 @@ class Sanic:
return handler
return response
# Decorator
def middleware(self, middleware_or_request):
"""Decorate and register middleware to be called before a request.