Sha256: c115e480d4932086740374ef5eefcf7147e696208ae7deb7e7512e972c73f048

Contents?: true

Size: 283 Bytes

Versions: 3

Compression:

Stored size: 283 Bytes

Contents

module RedBase
  module API
    class UsersAPI < Grape::API


      resource :users do

        desc "Return all the users"
        get do
          authenticated_user
          # TODO: Check for admin user only
          RedBase::User.all
        end

      end


    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
red_base-0.6.0 lib/red_base/api/users_api.rb
red_base-0.5.1 lib/red_base/api/users_api.rb
red_base-0.5.0 lib/red_base/api/users_api.rb