Class: UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- UsersController
- Defined in:
- app/controllers/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#current ⇒ Object
3 4 5 |
# File 'app/controllers/users_controller.rb', line 3 def current render json: current_user end |
#index ⇒ Object
7 8 9 |
# File 'app/controllers/users_controller.rb', line 7 def index render json: current_entity.users end |
#teams ⇒ Object
11 12 13 |
# File 'app/controllers/users_controller.rb', line 11 def teams render json: current_user.teams end |