Vk accounts config in yml

This commit is contained in:
magnolia-fan
2011-04-08 23:42:14 +04:00
parent b8b97c3efa
commit 253b732643
2 changed files with 58 additions and 7 deletions
+9 -7
View File
@@ -1,11 +1,13 @@
class TrackController < ApplicationController
require 'net/http'
require 'uri'
def listen
@track = TrackData.where(id: params[:id])
unless @track.empty?
out = {:status => 'ok', :data => @track.first.files.first[1]}
else
out = {:status => 'no_such_track'}
end
render :json => out
end
private
def fetchSearch q
end
end