code: def _init_routes_and_middlewares(self):
          
          self._init_middlewares()
          self._init_endpoints()
  
          self.app = falcon.API(middleware=self.middleware)
          self.app.add_error_handler(Exception, self._error_handler)
  
          for version_path, endpoints in self.catalog:
              for route, resource in endpoints:
                  self.app.add_route(version_path + route, resource)
docs: Initialize hooks and URI routes to resources.