Xmpp::Application.routes.draw do
    get 'chat/index'

    resources :sessions, only: [:new, :create, :destroy]

    root :to => 'sessions#new'

    match '/signin',  to: 'sessions#new'
    match '/logout',  to: 'sessions#destroy'

    match '/chat', to: 'chat#index'
end