10 lines
235 B
Elixir
10 lines
235 B
Elixir
|
|
defmodule SimpleshopWeb.OAuthController do
|
||
|
|
use SimpleshopWeb, :controller
|
||
|
|
alias Simpleshop.Printify.OAuth
|
||
|
|
|
||
|
|
def authorize(conn, _params) do
|
||
|
|
auth_url = OAuth.authorization_url()
|
||
|
|
redirect(conn, external: auth_url)
|
||
|
|
end
|
||
|
|
end
|