Skip to content

Instantly share code, notes, and snippets.

@zoltanarvai
Created March 23, 2019 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoltanarvai/6967e319ab750c55dfa5cd049a1980f0 to your computer and use it in GitHub Desktop.
Save zoltanarvai/6967e319ab750c55dfa5cd049a1980f0 to your computer and use it in GitHub Desktop.
# Pipeline for private apis, requires Authorisation header with Bearer token
pipeline :private do
plug :accepts, ["json"]
plug Auth.Guardian.Pipeline
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment