2018-08-27 14:37:06 +00:00
|
|
|
class ApplicationController < ActionController::Base
|
|
|
|
protect_from_forgery with: :exception
|
|
|
|
before_action :authenticate_user!
|
2018-08-27 18:05:57 +00:00
|
|
|
protect_from_forgery unless: -> { request.format.json? } # Only accept json
|
2018-08-27 14:37:06 +00:00
|
|
|
end
|