Class: JwtAuthEngine::ProfilesController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- JwtAuthEngine::ProfilesController
- Includes:
- Serializable
- Defined in:
- app/controllers/jwt_auth_engine/profiles_controller.rb
Overview
Profile retrieval endpoint for the authenticated auth model.
Instance Method Summary collapse
-
#me ⇒ Object
── GET /me ───────────────────────────────────────────────────────────────.
Methods included from ResponseRenderable
#render_internal_server_error, #render_success, #render_unauthorized, #render_validation_error
Instance Method Details
#me ⇒ Object
── GET /me ───────────────────────────────────────────────────────────────
9 10 11 12 13 |
# File 'app/controllers/jwt_auth_engine/profiles_controller.rb', line 9 def me render_success( JwtAuthEngine.auth_model_name => serialize_auth_model_instance(current_auth_model_instance) ) end |