pass router object as parameter to RequestHandler