def api_token
    unless current_user
      bounce_user
      return
    end

    token = Tokens::Api.where(user_id: current_user.id).first ||
        Tokens::Api.random_for(current_user)
    @api_token = token.code
    respond_to do |format|
      format.html
      format.json { render json: { api_token: @api_token } }
    end
  end
def api_token
    unless current_user
      bounce_user
      return
    end

    token = Tokens::Api.where(user_id: current_user.id).first ||
        Tokens::Api.random_for(current_user)
    @api_token = token.code
    respond_to do |format|
      format.html
      format.json { render json: { api_token: @api_token } }
    end
  end
GET /api_token