Class: Admin::PhotosController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/admin/photos_controller.rb

Instance Method Summary collapse

Instance Method Details

#priorityObject

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

#showObject

get /admin/photos/:id



5
6
# File 'app/controllers/admin/photos_controller.rb', line 5

def show
end