old_contents: from foglamp.admin_api.app_builder import build as build_app
  import asyncio
  
  
  def start():
      """Create a http server for REST listening on port 8080"""
      # TODO Read port from config (but might use nginx or gunicorn in production)
  
      loop = asyncio.get_event_loop()
      f = loop.create_server(build_app().make_handler(), '0.0.0.0', 8080)
      loop.create_task(f)
  
  
new_contents: from foglamp.admin_api.app_builder import build as build_app
  import asyncio
  
  
  def start():
      """Create a http server for REST listening on port 8080"""
      # TODO Read port from config (but might use nginx in production especially for https)
  
      loop = asyncio.get_event_loop()
      f = loop.create_server(build_app().make_handler(), '0.0.0.0', 8080)
      loop.create_task(f)
  
subject: Change a comment