docs: def _setup(app, *, schema,  title=None, app_key=APP_KEY, db=None):
      """Initialize the admin-on-rest admin"""
  
      admin = web.Application(loop=app.loop)
      app[app_key] = admin
      loader = jinja2.FileSystemLoader([TEMPLATES_ROOT, ])
      aiohttp_jinja2.setup(admin, loader=loader, app_key=TEMPLATE_APP_KEY)
  
      if title:
          schema.title = title
  
      resources = [
          init(db, info['table'], url=info['url'])
          for init, info in schema.resources
      ]
  
      admin_handler = AdminOnRestHandler(
          admin,
          resources=resources,
          loop=app.loop,
          schema=schema,
      )
  
      admin['admin_handler'] = admin_handler
      setup_admin_on_rest_handlers(admin, admin_handler)
  
      return admin