From 830bad0b85ed05404cc37e89bc29e9c519e81fd8 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 17 Oct 2018 04:47:39 -0700 Subject: [PATCH] docs for #53 --- responder/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/responder/api.py b/responder/api.py index cee9f29..1ed7289 100644 --- a/responder/api.py +++ b/responder/api.py @@ -225,7 +225,8 @@ class API: """Add a route to the API. :param route: A string representation of the route. - :param endpoint: The endpoint for the route -- can be a callable, a class, a WSGI application, or graphene schema (GraphQL). + :param endpoint: The endpoint for the route -- can be a callable, a class, or graphene schema (GraphQL). + :param static: if True, and no endpoint was passed, render "static/index.html", and forward all undefined routes to this view. :param check_existing: If ``True``, an AssertionError will be raised, if the route is already defined. """ if check_existing: