Closed OpakAlex closed 9 years ago
@manukall :)
hey @OpakAlex i don't see the reason to change it. what's the use case or problem you're running into?
I may add that i dont like very much that there are
post "users", PhoenixTokenAuth.Controllers.Users, :create
post "users/:id/confirm", PhoenixTokenAuth.Controllers.Users, :confirm
This takes for granted that the "user" model is called users.
I successfully managed to make it use the "Account" model ( taken idea from your use of account model )
@alexjp Account model it's not user. In real projects you have User and Account. I think we need do get request to users, not to accounts.
it's pretty easy to just define your own routes. just instead of putting PhoenixTokenAuth.mount
into your router define them manually as that macro would.
@manukall definitly. Later at night, can i do a pull request to the documentation ? "Customizing routes?"
@alexjp that would be extremely great :smiley:
+1
I thinks, we need change some url, for example:
post "sessions"
it must bepost "users/sign_in"
delete "sessions" it must be 'delete' "users/sign_out"
What are you think?