Class: OasRails::OasRailsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/oas_rails/oas_rails_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
11
12
13
# File 'app/controllers/oas_rails/oas_rails_controller.rb', line 6

def index
  respond_to do |format|
    format.html { render "index", layout: OasRails.config.layout }
    format.json do
      render json: OasRails.build.to_json, status: :ok
    end
  end
end