Class: Maglev::Api::SitesController

Inherits:
Maglev::ApiController show all
Defined in:
app/controllers/maglev/api/sites_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



6
7
8
9
10
11
12
# File 'app/controllers/maglev/api/sites_controller.rb', line 6

def show
  if (@site = maglev_site).present?
    @home_page_id = maglev_page_collection.home.pick(:id)
  else
    head :not_found
  end
end