Class: Landable::Api::CategoriesController

Inherits:
Landable::ApiController show all
Defined in:
app/controllers/landable/api/categories_controller.rb

Constant Summary

Constants inherited from Landable::ApiController

Landable::ApiController::API_MEDIA_REGEX

Instance Method Summary collapse

Methods inherited from Landable::ApiController

#api_media

Instance Method Details

#indexObject



4
5
6
# File 'app/controllers/landable/api/categories_controller.rb', line 4

def index
  respond_with Category.all
end

#showObject



8
9
10
# File 'app/controllers/landable/api/categories_controller.rb', line 8

def show
  respond_with Category.find(params[:id])
end