Skip to content

Commit

Permalink
Merge pull request #159 from eagletmt/use-api
Browse files Browse the repository at this point in the history
Use AC::API to skip CSRF protection in APIs
  • Loading branch information
eagletmt authored Jan 21, 2025
2 parents 960f601 + 8045a61 commit a4733ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/kuroko2/api/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class Kuroko2::Api::ApplicationController < ActionController::Base
class Kuroko2::Api::ApplicationController < ActionController::API
include ActionController::HttpAuthentication::Basic::ControllerMethods
include Garage::ControllerHelper

before_action :api_authentication
Expand Down

0 comments on commit a4733ae

Please sign in to comment.