Class: Admin::PhotosController
- Inherits:
-
AdminController
- Object
- AdminController
- Admin::PhotosController
- Defined in:
- app/controllers/admin/photos_controller.rb
Instance Method Summary collapse
-
#priority ⇒ Object
post /admin/photos/:id/priority.
-
#show ⇒ Object
get /admin/photos/:id.
Instance Method Details
#priority ⇒ Object
post /admin/photos/:id/priority
9 10 11 |
# File 'app/controllers/admin/photos_controller.rb', line 9 def priority render json: { data: @entity.change_priority(params[:delta].to_s.to_i) } end |
#show ⇒ Object
get /admin/photos/:id
5 6 |
# File 'app/controllers/admin/photos_controller.rb', line 5 def show end |