code: def add_route(self, view: View, path: str, exact: bool = True) -> None:
          
          if path[0] != '/':
              path = '/' + path
          for route in self._routes:
              assert path != route.path, 'Cannot use the same path twice'
          self._routes.append(Route(view=view, path=path, exact=exact))
  
          self.app.add_url_rule(
              path, path[1:], lambda: render_template('bowtie.html', title=self.title)
          )
docs: Add a view to the app.
  
          Parameters
          ----------
          view : View
          path : str
          exact : bool, optional