From c5efc4b64b417b758911fed1b44b43a64fad821a Mon Sep 17 00:00:00 2001 From: Mike Yusko Date: Sun, 12 May 2019 15:32:34 +0300 Subject: [PATCH 1/2] Added documentation for missed arguments --- sanic/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sanic/app.py b/sanic/app.py index ce8770bd..fdc473cc 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -441,8 +441,12 @@ class Sanic: ): """Decorate a function to be registered as a websocket route :param uri: path of the URL + :param host: Host IP or FQDN details + :param strict_slashes: If the API endpoint needs to terminate + with a "/" or not :param subprotocols: optional list of str with supported subprotocols - :param host: + :param name: A unique name assigned to the URL so that it can + be used with :func:`url_for` :return: decorated function """ self.enable_websocket() From 4c8cc84b64633ab9556ddefc25c3b61efc1b499b Mon Sep 17 00:00:00 2001 From: Mike Yusko Date: Sun, 12 May 2019 15:36:13 +0300 Subject: [PATCH 2/2] Delete unnecessary whitespace --- sanic/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/app.py b/sanic/app.py index fdc473cc..5fa7b872 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -445,7 +445,7 @@ class Sanic: :param strict_slashes: If the API endpoint needs to terminate with a "/" or not :param subprotocols: optional list of str with supported subprotocols - :param name: A unique name assigned to the URL so that it can + :param name: A unique name assigned to the URL so that it can be used with :func:`url_for` :return: decorated function """