eh, added some code which i disabled
This commit is contained in:
parent
0444c1209f
commit
63fdd60311
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue