Class: SedgeApi::LayoutsController
- Inherits:
-
SedgeCms::ApplicationController
- Object
- SedgeCms::ApplicationController
- SedgeApi::LayoutsController
- Defined in:
- app/controllers/sedge_cms/sedge_api/layouts_controller.rb,
app/controllers/sedge/sedge_api/layouts_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/sedge_cms/sedge_api/layouts_controller.rb', line 5 def index puts 'layouts'.red sedge_path = Rails.root.join('app', 'sedge', 'layouts') paths = directory_hash(sedge_path) render :json => paths[:items].to_json end |