Class: Ishapi::ApiController

Inherits:
UnrestrictedController show all
Defined in:
app/controllers/ishapi/api_controller.rb

Instance Method Summary collapse

Instance Method Details

#homeObject



6
7
8
9
10
# File 'app/controllers/ishapi/api_controller.rb', line 6

def home
  authorize! :welcome_home, Ishapi
  render :json => { :status => :ok, :message => 'Ishapi::ApiController.home', 
                    :n_reports => Report.count, :n_cities => City.count }
end