def getContentSource()

in app/com/gu/floodgate/contentsource/ContentSourceApi.scala [47:52]


  def getContentSource(id: String, environment: String) = Action { implicit request =>
    contentSourceService.getContentSource(id, environment) match {
      case Right(cs)   => Ok(Json.toJson(SingleContentSourceResponse(cs)))
      case Left(error) => NotFound(Json.toJson(ErrorResponse(error.message)))
    }
  }