The player is playing!
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
File.open("#{Rails.root}/config/api_keys.yml") do |file|
|
||||
config = YAML.load(file.read)
|
||||
BeatHaven::Application.config.api_accounts = config
|
||||
|
||||
LastFM.api_key = config["lastfm"]["api_key"]
|
||||
LastFM.secret = config["lastfm"]["api_secret"]
|
||||
@@ -7,6 +7,9 @@ BeatHaven::Application.routes.draw do
|
||||
resources :search, only: [] do
|
||||
collection { get :complete; get :wtfis }
|
||||
end
|
||||
resources :session, only: [] do
|
||||
collection { post :auth }
|
||||
end
|
||||
end
|
||||
|
||||
match "/:path" => "application#main", constraints: { path: /.*/ }
|
||||
|
||||
Reference in New Issue
Block a user