mirror of
https://github.com/kevin-DL/phoenix_api_template.git
synced 2026-01-15 12:14:51 +00:00
Adding the user to the session
This commit is contained in:
@@ -16,10 +16,12 @@ defmodule PhoenixApiTemplateWeb.Router do
|
||||
|
||||
pipeline :api do
|
||||
plug(:accepts, ["json"])
|
||||
plug :fetch_session
|
||||
end
|
||||
|
||||
pipeline :auth do
|
||||
plug PhoenixApiTemplateWeb.Auth.Pipeline
|
||||
plug PhoenixApiTemplateWeb.Auth.SetUser
|
||||
end
|
||||
|
||||
scope "/api", PhoenixApiTemplateWeb do
|
||||
|
||||
Reference in New Issue
Block a user