Refactoring session routing
Fixes #21 (closed)
- Moves
authenticate_user
toauth_controller
. And Use it as a function plug. - Applies this
authenticate_user
function plug to the resources needed to be protected. - Add
Auth
module plug tobrowser
pipeline, so it gets called for every action which it will addcurrent_user
to everything.