#NEWLINE# def __init__( self , mapper ) : #NEWLINE# #INDENT# "Create a router for the given routes.Mapper.\n\n        Each route in `mapper` must specify a 'controller', which is a\n        WSGI app to call.  You'll probably want to specify an 'action' as\n        well and have your controller be an object that can route\n        the request to the action-specific method.\n\n        Examples:\n          mapper = routes.Mapper()\n          sc = ServerController()\n\n          # Explicit mapping of one route to a controller+action\n          mapper.connect(None, '/svrlist', controller=sc, action='list')\n\n          # Actions are all implicitly defined\n          mapper.resource('server', 'servers', controller=sc)\n\n          # Pointing to an arbitrary WSGI app.  You can specify the\n          # {path_info:.*} parameter so the target app can be handed just that\n          # section of the URL.\n          mapper.connect(None, '/v1.0/{path_info:.*}', controller=BlogApp())\n\n        " #NEWLINE# self . map = mapper #NEWLINE# self . _router = routes . middleware . RoutesMiddleware ( self . _dispatch , mapper . map )