24 lines
881 B
Ruby
24 lines
881 B
Ruby
class ApiScoringController < ApiController
|
|
|
|
respond_to :json
|
|
# todo before_filter :api_signed_in_user
|
|
|
|
def work # clientid returns another clientid
|
|
# todo clientid should come from the connection record of the signed in user
|
|
# todo this method is a stub
|
|
render :json => {:clientid => [params[:clientid]+'peer']}, :status => 200
|
|
end
|
|
|
|
def worklist # clientid returns a list of clientids
|
|
# todo clientid should come from the connection record of the signed in user
|
|
# todo this method is a stub
|
|
render :json => {:clientids => [params[:clientid]+'1_peer', params[:clientid]+'2_peer']}, :status => 200
|
|
end
|
|
|
|
def record # aclientid, aAddr, bclientid, bAddr, score returns nothing
|
|
# todo aclientid, aAddr should come from the connection record of the signed in user
|
|
# todo this method is a stub
|
|
render :json => {}, :status => 200
|
|
end
|
|
|
|
end |