require 'sidekiq/web'

Rbo::Application.routes.draw do
  
  devise_for :admin_users, ActiveAdmin::Devise.config
  ActiveAdmin.routes(self)
  root 'movies#index'
  resources :movies, only: [:index, :show]

  get '/latest' => 'movies#latest'

  post '/play' => 'movies#play'

  get '/admin/tweet_update/:id' => 'movies#tweet_update', as: 'tweet_update'

  mount Sidekiq::Web => '/sidekiq'

end
