Class: Dps::InfoController

Inherits:
ApplicationController show all
Defined in:
app/controllers/dps/info_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



6
7
8
9
10
11
12
# File 'app/controllers/dps/info_controller.rb', line 6

def show
  if Dps.endpoints.present?
    render json: {endpoints: Dps.endpoints}
  else
    render json: "No endpoints specified", status: 501
  end
end