app/api/locomotive/api/resources/page_resource.rb in locomotivecms-3.1.0.rc2 vs app/api/locomotive/api/resources/page_resource.rb in locomotivecms-3.1.0.rc3
- old
+ new
@@ -21,10 +21,10 @@
desc 'Only full path of pages'
get '/fullpaths' do
authorize Page, :index?
- present pages.only(:_id, :fullpath), with: Locomotive::API::Entities::FullpathPageEntity
+ present pages.only(:_id, :fullpath, :handle), with: Locomotive::API::Entities::FullpathPageEntity
end
desc "Show a page"
params do
requires :id, type: String, desc: 'Page ID'