Class: Landable::Api::CategoriesController
- Inherits:
-
Landable::ApiController
- Object
- ApplicationController
- Landable::ApplicationController
- Landable::ApiController
- Landable::Api::CategoriesController
- 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
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/landable/api/categories_controller.rb', line 4 def index respond_with Category.all end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/landable/api/categories_controller.rb', line 8 def show respond_with Category.find(params[:id]) end |