chore: removed useless routes
This commit is contained in:
parent
3bea1c2d26
commit
d6b3160a5b
2 changed files with 0 additions and 13 deletions
|
@ -1,13 +1,6 @@
|
||||||
defmodule PodcastFeedWeb.FeedController do
|
defmodule PodcastFeedWeb.FeedController do
|
||||||
use PodcastFeedWeb, :controller
|
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
|
|
||||||
|
|
||||||
def by_identifier(conn, %{"identifier" => identifier}) do
|
def by_identifier(conn, %{"identifier" => identifier}) do
|
||||||
%{podcast: podcast, items: items} = PodcastFeed.archive(identifier)
|
%{podcast: podcast, items: items} = PodcastFeed.archive(identifier)
|
||||||
conn
|
conn
|
||||||
|
|
|
@ -13,12 +13,6 @@ defmodule PodcastFeedWeb.Router do
|
||||||
plug :accepts, ["json"]
|
plug :accepts, ["json"]
|
||||||
end
|
end
|
||||||
|
|
||||||
scope "/", PodcastFeedWeb do
|
|
||||||
pipe_through :browser
|
|
||||||
|
|
||||||
get "/ape-milano", FeedController, :apeMilano
|
|
||||||
end
|
|
||||||
|
|
||||||
scope "/podcast", PodcastFeedWeb do
|
scope "/podcast", PodcastFeedWeb do
|
||||||
pipe_through :browser
|
pipe_through :browser
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue