mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 22:16:21 +00:00
fix: no buscar csrf
This commit is contained in:
parent
f517889992
commit
f8f0eb9d3c
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@ module Api
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
included do
|
||||||
|
skip_before_action :verify_authenticity_token
|
||||||
|
|
||||||
# Responde con forbidden si falla la validación del token
|
# Responde con forbidden si falla la validación del token
|
||||||
rescue_from ActiveRecord::RecordNotFound, with: :platforms_answer
|
rescue_from ActiveRecord::RecordNotFound, with: :platforms_answer
|
||||||
rescue_from ActiveRecord::RecordInvalid, with: :platforms_answer
|
rescue_from ActiveRecord::RecordInvalid, with: :platforms_answer
|
||||||
|
|
Loading…
Reference in a new issue