init push - laying out the project
This commit is contained in:
13
portal/app/controllers/api/v1/users_controller.rb
Normal file
13
portal/app/controllers/api/v1/users_controller.rb
Normal file
@ -0,0 +1,13 @@
|
||||
class Api::V1::UsersController < Api::AuthenticatedApiController
|
||||
skip_before_action :authenticate_user!, only: [ :auth]
|
||||
|
||||
def auth
|
||||
unless user_signed_in?
|
||||
render json: { success: false }
|
||||
return
|
||||
end
|
||||
|
||||
render json: { success: true, user: current_user.json_payload}
|
||||
end
|
||||
|
||||
end
|
Reference in New Issue
Block a user