http: Fix docs links

This commit is contained in:
Stein Magnus Jodal 2014-05-21 00:43:56 +02:00
parent 1223103e8f
commit 345bf5b418

View File

@ -61,20 +61,21 @@ class Router(object):
Must be overridden by all subclasses. Must be overridden by all subclasses.
This should be the same as the ``ext_name`` of the Mopidy extension This should be the same as the ``ext_name`` of the Mopidy extension
implementing an HTTP router. The :attr:`name` will be used to namespace all implementing an HTTP router. The :attr:`~Router.name` will be used to
URLs handled by this router. namespace all URLs handled by this router.
For example, if :attr:`name` is ``soundspot``, then the router will manage For example, if :attr:`~Router.name` is ``soundspot``, then the router will
all requests starting with ``http://localhost:6680/soundspot``. manage all requests starting with ``http://localhost:6680/soundspot``.
""" """
static_file_path = None static_file_path = None
"""Path to location of static files to be served. """Path to location of static files to be served.
If you only need to serve static files, set this attribute and use the If you only need to serve static files, set this attribute and use the
default implementation of :meth:`get_request_handlers`. default implementation of :meth:`~Router.get_request_handlers`.
If you override :meth:`get_request_handlers` this attribute is not used. If you override :meth:`~Router.get_request_handlers` this attribute is not
used.
""" """
def __init__(self, config, core): def __init__(self, config, core):