eh, added some code which i disabled

This commit is contained in:
Scott Comer 2014-02-26 21:44:49 -06:00
parent 0444c1209f
commit 63fdd60311
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class ApiScoringController < ApiController
if !c.user.id.eql?(current_user.id) then render :json => {message: 'user does not own client_id'}, :status => 403; return end
# todo this method is a stub
#result_client_id = JamRuby::GetWork.get_work(c.locidispid)
result_client_id = client_id+'peer'
render :json => {:clientid => result_client_id}, :status => 200
@ -26,6 +27,7 @@ class ApiScoringController < ApiController
if !c.user.id.eql?(current_user.id) then render :json => {message: 'user does not own client_id'}, :status => 403; return end
# todo this method is a stub
# result_client_ids = JamRuby::GetWork.get_work_list(c.locidispid)
result_client_ids = [client_id+'peer1', client_id+'peer2']
render :json => {:clientids => result_client_ids}, :status => 200