added router and request handler for the server