Redirect to Last.fm and receive a token (unused)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
defmodule MusicLibraryWeb.LastFmController do
|
||||
use MusicLibraryWeb, :controller
|
||||
|
||||
def callback(conn, %{"token" => _token}) do
|
||||
conn |> redirect(to: ~p"/")
|
||||
end
|
||||
end
|
||||
@@ -35,5 +35,8 @@
|
||||
</button>
|
||||
</div>
|
||||
</.form>
|
||||
<a href={LastFm.auth_url()} class="flex items-center justify-center">
|
||||
Connect to Last.fm
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user