Class: Dps::InfoController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Dps::InfoController
- Defined in:
- app/controllers/dps/info_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/dps/info_controller.rb', line 6 def show if Dps.endpoints.blank? render json: "No endpoints specified", status: 501 elsif Dps.domains.blank? render json: "No domains specified", status: 501 else render json: { endpoints: Dps.endpoints, domains: Dps.domains, } end end |