Sha256: 9256ff9068a0b2dcd365adc94cdfdb5eac2723d89ec2c118e77a763fa51a6442

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

module Pwb
  class Import::WebContentsController < ApplicationApiController

    # http://localhost:3000/import/translations/multiple
    def multiple
      Content.import(params[:file])
      return render json: { "success": true }, status: :ok, head: :no_content

      # redirect_to root_url, notice: "contents imported."
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pwb-1.4.0 app/controllers/pwb/import/web_contents_controller.rb
pwb-1.3.0 app/controllers/pwb/import/web_contents_controller.rb
pwb-1.2.0 app/controllers/pwb/import/web_contents_controller.rb
pwb-1.1.1 app/controllers/pwb/import/web_contents_controller.rb
pwb-1.0.0 app/controllers/pwb/import/web_contents_controller.rb
pwb-0.1.1 app/controllers/pwb/import/web_contents_controller.rb
pwb-0.1.0 app/controllers/pwb/import/web_contents_controller.rb