lib/generators/authentication/templates/controllers/api/sessions_controller.rb.tt in authentication-zero-2.2.8 vs lib/generators/authentication/templates/controllers/api/sessions_controller.rb.tt in authentication-zero-2.2.9
- old
+ new
@@ -1,8 +1,8 @@
class SessionsController < ApplicationController
- before_action :set_session, only: %i[ show destroy ]
-
skip_before_action :authenticate, only: :create
+
+ before_action :set_session, only: %i[ show destroy ]
def index
render json: Current.<%= singular_table_name %>.sessions.order(created_at: :desc)
end