open-pod/lib/podcast_feed_web/controllers/feed_controller.ex
danilo silva 6b042f65ab using json instaed of xml
removed hardcoded from generic podcast medatadata
2020-05-23 21:51:56 +00:00

10 lines
316 B
Elixir

defmodule PodcastFeedWeb.FeedController do
use PodcastFeedWeb, :controller
def apeMilano(conn, _params) do
%{podcast: podcast, items: items} = PodcastFeed.archive("incontri-a-piano-terra")
conn
|> put_resp_content_type("text/xml")
|> render("feed.xml", podcast: podcast, items: items)
end
end