<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_route(self, view: View, path: str, exact: bool = True) -> None: """Add a view to the app. Parameters view : View path : str exact : bool, optional """

        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)
        )