Janky initial implementation of auth and profiles
This commit is contained in:
parent
eccaca068d
commit
2456c6d14b
@ -22,8 +22,6 @@ defmodule Friends.Accounts.User do
|
|||||||
|
|
||||||
def load_profile(nil) do
|
def load_profile(nil) do
|
||||||
%{profile: nil}
|
%{profile: nil}
|
||||||
|
|
||||||
has_one :profile, Friends.Friend
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
|
|||||||
@ -23,8 +23,6 @@ defmodule FriendsWeb.Router do
|
|||||||
get "/", PageController, :index
|
get "/", PageController, :index
|
||||||
get "/friends", FriendController, :index
|
get "/friends", FriendController, :index
|
||||||
|
|
||||||
live "/friend/:slug", FriendsLive.Show
|
|
||||||
|
|
||||||
live "/friend/:slug", FriendLive.Show
|
live "/friend/:slug", FriendLive.Show
|
||||||
live "/friend/:slug/edit", FriendLive.Edit
|
live "/friend/:slug/edit", FriendLive.Edit
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user