asciinema.org/app/controllers/api/base_controller.rb

14 lines
201 B
Ruby
Raw Normal View History

module Api
class BaseController < ApplicationController
skip_before_filter :verify_authenticity_token
private
def authenticate
warden.authenticate(:api_token)
end
end
end