Add backend and endpoints for Feed Tokens

Closes #19 #86 #87

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-03-08 12:25:06 +01:00
parent 2eeabe5a23
commit c61c75163f
11 changed files with 476 additions and 9 deletions

View File

@@ -152,4 +152,14 @@ defmodule Mobilizon.Factory do
role: :not_approved
}
end
def feed_token_factory do
user = build(:user)
%Mobilizon.Events.FeedToken{
user: user,
actor: build(:actor, user: user),
token: Ecto.UUID.generate()
}
end
end