scinote-web/app/controllers/client_api/users_controller.rb

15 lines
315 B
Ruby
Raw Normal View History

2017-08-09 15:08:13 +08:00
module ClientApi
class UsersController < ApplicationController
def current_user_info
respond_to do |format|
format.json do
render template: '/client_api/users/show',
status: :ok,
locals: { user: current_user }
end
end
end
end
end