Static blog with front page summary
Goal: have a personal blog, and try out another point in the 'modular app design with elixir' space. Designing OTP systems with elixir had some interesting ideas.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
defmodule FirehoseWeb.SitemapController do
|
||||
@moduledoc """
|
||||
Example controller for serving the blog sitemap.
|
||||
"""
|
||||
use MyAppWeb, :controller
|
||||
|
||||
def index(conn, _params) do
|
||||
xml = Blogex.SEO.sitemap(Blogex.blogs(), FirehoseWeb.Endpoint.url())
|
||||
|
||||
conn
|
||||
|> put_resp_content_type("application/xml")
|
||||
|> send_resp(200, xml)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user