def getRunningJob()

in app/com/gu/floodgate/runningjob/RunningJobApi.scala [23:28]


  def getRunningJob(contentSourceId: String, environment: String) = Action { implicit request =>
    runningJobService.getRunningJob(contentSourceId, environment) match {
      case Right(runningJob) => Ok(Json.toJson(SingleRunningJobResponse(runningJob)))
      case Left(error)       => NotFound(Json.toJson(ErrorResponse(error.message)))
    }
  }