def item()

in newswires/app/controllers/QueryController.scala [90:96]


  def item(id: Int, maybeFreeTextQuery: Option[String]): Action[AnyContent] =
    apiAuthAction {
      FingerpostWireEntry.get(id, maybeFreeTextQuery) match {
        case Some(entry) => Ok(Json.toJson(entry))
        case None        => NotFound
      }
    }