From e21e91ab9eefd9db5e73a67afca5087e4dd293fd Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 23 Sep 2017 10:33:18 -0400 Subject: Started writing extractor --- app/controllers/pokeviewer/uploader_controller.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/controllers/pokeviewer/uploader_controller.rb (limited to 'app/controllers') diff --git a/app/controllers/pokeviewer/uploader_controller.rb b/app/controllers/pokeviewer/uploader_controller.rb new file mode 100644 index 0000000..dbef241 --- /dev/null +++ b/app/controllers/pokeviewer/uploader_controller.rb @@ -0,0 +1,13 @@ +require_dependency "pokeviewer/application_controller" + +module Pokeviewer + class UploaderController < ApplicationController + skip_before_action :verify_authenticity_token + + def submit + ExtractSaveDataJob.perform_later params[:game].as_json + + render json: { message: "Data submitted for processing." } + end + end +end -- cgit 1.4.1