code: def _update_url_map(self):
          '''
          Assemble any dynamic or configurable URLs
          '''
          if HAS_WEBSOCKETS:
              self.url_map.update({
                  'ws': WebsocketEndpoint,
              })
  
          # Allow the Webhook URL to be overridden from the conf.
          self.url_map.update({
              self.apiopts.get('webhook_url', 'hook').lstrip('/'): Webhook,
          })
  
          # Enable the single-page JS app URL.
          self.url_map.update({
              self.apiopts.get('app_path', 'app').lstrip('/'): App,
          }f _update_url_map(self):
          '''
          Assemble any dynamic or configurable URLs
          '''
          if HAS_WEBSOCKETS:
              self.url_map.update({
                  'ws': WebsocketEndpoint,
              })
  
          # Allow the Webhook URL to be overridden from the conf.
          self.url_map.update({
              self.apiopts.get('webhook_url', 'hook').lstrip('/'): Webhook,
          })
  
          # Enable the single-page JS app URL.
          self.url_map.update({
              self.apiopts.get('app_path', 'app').lstrip('/'): App,
          })
docs: Assemble any dynamic or configurable URLs