diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-23 10:33:18 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-23 10:33:18 -0400 |
commit | e21e91ab9eefd9db5e73a67afca5087e4dd293fd (patch) | |
tree | 6e13aa2552721323557cb5a517e1f241ec1dc5b9 /app/controllers | |
parent | f6cdc2fd2f50224fb7dd31d3ccb374cf4ffe7b6d (diff) | |
download | pokeviewer-e21e91ab9eefd9db5e73a67afca5087e4dd293fd.tar.gz pokeviewer-e21e91ab9eefd9db5e73a67afca5087e4dd293fd.tar.bz2 pokeviewer-e21e91ab9eefd9db5e73a67afca5087e4dd293fd.zip |
Started writing extractor
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/pokeviewer/uploader_controller.rb | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ | |||
1 | require_dependency "pokeviewer/application_controller" | ||
2 | |||
3 | module Pokeviewer | ||
4 | class UploaderController < ApplicationController | ||
5 | skip_before_action :verify_authenticity_token | ||
6 | |||
7 | def submit | ||
8 | ExtractSaveDataJob.perform_later params[:game].as_json | ||
9 | |||
10 | render json: { message: "Data submitted for processing." } | ||
11 | end | ||
12 | end | ||
13 | end | ||