Sha256: 36ce4652013f587ef013b65b095a339085a322e17f411f4e069f8ab8a880da8d

Contents?: true

Size: 200 Bytes

Versions: 2

Compression:

Stored size: 200 Bytes

Contents

class UsersController < ApplicationController
  include SimpleTokenAuth::AuthenticateWithToken

  prepend_before_action :authenticate_user_from_token!

  def index
    render json: User.all
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_token_auth-0.0.4 test/dummy/app/controllers/users_controller.rb
simple_token_auth-0.0.3 test/dummy/app/controllers/users_controller.rb