Class: BillyCms::Api::PageTypesController
- Inherits:
-
ApiController
- Object
- ActionController::Base
- ApiController
- BillyCms::Api::PageTypesController
- Defined in:
- app/controllers/billy_cms/api/page_types_controller.rb
Instance Method Summary collapse
Methods inherited from ApiController
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/billy_cms/api/page_types_controller.rb', line 4 def index render json: PageType.all end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/billy_cms/api/page_types_controller.rb', line 8 def show render json: PageType.find(params[:id]) end |