def fetchArticleByPath()

in src/main/scala/managehelpcontentpublisher/S3.scala [78:87]


    def fetchArticleByPath(path: String): Either[Failure, Option[String]] =
      get(s"${config.aws.articlesFolder}/$path.json")

    def fetchTopicByPath(path: String): Either[Failure, Option[String]] =
      get(s"${config.aws.topicsFolder}/$path.json")

    def fetchSitemap(): Either[Failure, Set[URI]] = get(config.aws.sitemapFile).flatMap {
      case None    => Left(ResponseFailure(s"Missing sitemap ${config.aws.sitemapFile}"))
      case Some(s) => Right(s.split('\n').map(new URI(_)).toSet)
    }