def reindex()

in app/controllers/ExplainerReindexController.scala [46:52]


  def reindex(stack: String): Action[AnyContent] = ApiKeyAction.async { req => 
    stack match {
      case "preview" => run(previewDataStore, previewReindexer).andThen(updateState(true)) map displayResult recover displayError(stack)
      case "published" => run(publishedDataStore, publishedReindexer).andThen(updateState(false)) map displayResult recover displayError(stack)
      case x => Future.successful(BadRequest(s"$x is not a valid stack identifier"))
    }
  }