The player is playing!

This commit is contained in:
Gregory Eremin
2012-09-02 02:03:19 +04:00
parent 43422624f1
commit 9f770892f8
29 changed files with 422 additions and 57 deletions
@@ -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"]
+3
View File
@@ -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: /.*/ }