adds routers and controllers to server