Skip to content
Snippets Groups Projects
Commit f7b61e4b authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

rendering all controller actions with json

parent 16c1b751
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@ class ApplicationController < ActionController::API
include DeviseTokenAuth::Concerns::SetUserByToken
include Pundit
respond_to :json
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
# protect_from_forgery with: :null_session
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment