Expose personal tokened feeds

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-03-26 19:01:55 +01:00
parent 380d7c56a8
commit cde9f8873e
15 changed files with 363 additions and 26 deletions

View File

@@ -26,7 +26,7 @@ defmodule Mobilizon.Web.FeedController do
end
def event(conn, %{"uuid" => uuid, "format" => "ics"}) do
return_data(conn, "ics", "event_" <> uuid, "event.ics")
return_data(conn, "ics", "event_" <> uuid, "event")
end
def event(_conn, _) do
@@ -34,7 +34,7 @@ defmodule Mobilizon.Web.FeedController do
end
def going(conn, %{"token" => token, "format" => format}) when format in @formats do
return_data(conn, format, "token_" <> token, "events.#{format}")
return_data(conn, format, "token_" <> token, "events")
end
def going(_conn, _) do