Dpalazzari/johari_window_api

View on GitHub
app/controllers/api/v1/users/github_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Api::V1::Users::GithubController < Api::V1::BaseController

  def show
    user = User.find_by(github: params[:name])
    if user 
      render json: user
    else
      render status: 404
    end
  end
end