class RootController < ApplicationController

  helper_method :slack_users, :slack_channels

  def index

  end

  def ui
    @startDate = params[:startDate]
    @endDate = params[:endDate]
  end

  def destroy
    current_user.destroy if current_user
    redirect_to :root
  end

  def slack_users
    @slack_users ||= slack_client.users
  end

  def slack_channels
    @slack_channels ||= slack_client.channels
  end

end
