mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Turn off CSRF protection for import
This commit is contained in:
parent
16d6b7c389
commit
cc17cd5f16
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
||||||
class ImportController < ApplicationController
|
class ImportController < ApplicationController
|
||||||
|
skip_before_filter :verify_authenticity_token, :only => [:new_papers_callback]
|
||||||
|
|
||||||
def new_papers_callback
|
def new_papers_callback
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
api_key = Rails.application.config_for(:morph)["key"]
|
api_key = Rails.application.config_for(:morph)["key"]
|
||||||
|
|
Loading…
Reference in a new issue