Introduce Sitemaps

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-08-12 16:05:34 +02:00
parent 9a0068dfea
commit c56fb710b6
21 changed files with 163 additions and 39 deletions

View File

@@ -43,7 +43,7 @@ defmodule Mobilizon.Storage.Ecto do
|> put_change(:id, uuid)
|> put_change(
:url,
apply(Routes, String.to_existing_atom("#{to_string(route)}_url"), [Endpoint, route, uuid])
apply(Routes, String.to_existing_atom("page_url"), [Endpoint, route, uuid])
)
end
end