summaryrefslogtreecommitdiff
path: root/users/app/controllers/keys_controller.rb
blob: 9a39fc46f6aec3393f42b028c5c75c781a69d9f3 (plain)
1
2
3
4
5
6
7
8
9
10
class KeysController < ApplicationController

  def show
    user = User.find_by_login(params[:login])
    # layout won't be included if we render text
    # we will show blank page if user doesn't have key or user doesn't exist
    render text: user ? user.public_key : ''
  end

end