Add route for feed.xml.

This commit is contained in:
Jessica Canady 2024-08-20 16:50:07 -04:00
parent 7309e8e374
commit f3bcea48e6
Signed by: phoenix
SSH key fingerprint: SHA256:aaLOzOrLi+0n4eDZNQKH97PehwRt6KSE5fYJc+ZRKCQ

View file

@ -14,6 +14,10 @@ defmodule JOLWeb.Router do
plug :accepts, ["json"]
end
pipeline :feeds do
plug :accepts, ["xml"]
end
scope "/", JOLWeb do
pipe_through :browser
@ -27,10 +31,11 @@ defmodule JOLWeb.Router do
get "/blog/:slug", BlogController, :show
end
# Other scopes may use custom stacks.
# scope "/api", JOLWeb do
# pipe_through :api
# end
scope "/", JOLWeb do
pipe_through :feeds
get "/feed.xml", FeedController, :feed
end
# Enable LiveDashboard and Swoosh mailbox preview in development
if Application.compile_env(:jol, :dev_routes) do