class V1::UserController
Controller for the current user
Renders the current user using V1::UserSerializer. The current user is determined by the authentication token in the request header
Public Instance Methods
show()
click to toggle source
Get the current user
-
Response
-
serialized User
-
# File app/controllers/v1/user_controller.rb, line 13 def show render json: current_user end