code: def add_routes(app):
      
      for (prefix, routes) in API_SECTIONS:
          api = Api(app, prefix=prefix)
          for ((pattern, resource, *args), kwargs) in routes:
              kwargs.setdefault('strict_slashes', False)
              api.add_resource(resource, pattern, *args, **kwargs)
docs: Add the routes to an app