summaryrefslogtreecommitdiff
path: root/app/controllers/api/identities_controller.rb
blob: de4910a8a81c8ae7a0e8abccaf2333b71ee2f2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Api
  class IdentitiesController < ApiController
    before_filter :token_authenticate
    before_filter :require_monitor

    respond_to :json

    def show
      @identity = Identity.find_by_address(params[:id])
      if @identity
        respond_with @identity
      else
        render_not_found
      end
    end

  end
end