Class: Maglev::Admin::Sections::ScreenshotsController

Inherits:
BaseController show all
Defined in:
app/controllers/maglev/admin/sections/screenshots_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



7
8
9
10
11
12
13
# File 'app/controllers/maglev/admin/sections/screenshots_controller.rb', line 7

def create
  services.persist_section_screenshot.call(
    section_id: params[:id],
    base64_image: params[:screenshot][:base64_image]
  )
  head :created
end