app/controllers/api/base_controller.rb (5 lines of code) (raw):

module Api class BaseController < ApplicationController protect_from_forgery only: [] end end