return router server function