Last active
June 8, 2016 10:48
-
-
Save scaffeinate/4e28ca3e9d6d0c80b86b8e8e3f5a7ad1 to your computer and use it in GitHub Desktop.
Api users controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Api::V1 | |
class UsersController < ApplicationController | |
def show | |
@user = User.find_by(email: params[:email]) | |
render json: @user | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment