input: Write a python function to map a handler to an endpoint and deploy the application.
  assert app.handlers == [('/', hello_world)]
  assert app.application == 'myapp'
  assert app.version == '1'
output: def deploy_application(app, endpoint, handler, application, version):
      app.handlers = [(endpoint, handler)]
      app.application = application
      app.version = version
  
  # Usage example:
  # deploy_application(app, '/', hello_world, 'myapp', '1')