26
26
from bzrlib.urlutils import local_path_to_url
29
def make_app(root, prefix, path_var, readonly=True):
30
30
"""Convenience function to construct a WSGI bzr smart server.
32
32
:param root: a local path that requests will be relative to.
33
33
:param prefix: See RelpathSetter.
34
34
:param path_var: See RelpathSetter.
37
41
app = SmartWSGIApp(base_transport)
38
42
app = RelpathSetter(app, prefix, path_var)