   use Flour.Web, :controller
   require IEx
   require Exredis
+  plug :auth
   plug :put_layout, "post.html"
   alias Flour.Post
   alias Flour.Photo

    |> put_flash(:info, "Post deleted successfully.")
    |> redirect(to: post_path(conn, :index))
  end
end

    #client |> Exredis.stop
     
     
    post = Repo.get!(Post, id) |> Repo.preload(:photos) |> Repo.preload :user
    render(conn, "show.html", post: post, layout: {Flour.LayoutView, "app.html"})
  end
